Files
openwrt-18.06/target/linux/apm821xx/base-files/etc/rc.button/BTN_1
2025-06-24 15:51:28 +02:00

19 lines
191 B
Bash
Executable File

#!/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