openwrtv4/target/linux/apm821xx/base-files/etc/rc.button/BTN_1

19 lines
191 B
Text
Raw Normal View History

#!/bin/sh
. /lib/functions.sh
BOARD=$(board_name)
if [ $BOARD == "netgear,wndr4700" ]; then
case "$ACTION" in
released)
rmmod dwc2
;;
pressed)
modprobe dwc2
;;
esac
fi
return 0