openwrtv3/target/linux/apm821xx/base-files/etc/rc.button/BTN_1
Mathias Kresin f12a32630f treewide: use the generic board_name function
Use the generic function instead ot the target specific ones.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-15 23:13:34 +02:00

18 lines
183 B
Bash
Executable file

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