summaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/base-files/etc/rc.button/BTN_1
blob: 995641237b4a0a59d9b4fc5099a8b96e293bf915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

. /lib/functions.sh
. /lib/apm821xx.sh

BOARD=$(apm821xx_board_name)

if [ $BOARD == "wndr4700" ]; then
	case "$ACTION" in
	released)
		rmmod dwc2
	;;
	pressed)
		modprobe dwc2
	;;
	esac
fi

return 0