summaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/base-files/etc/rc.button/BTN_1
blob: c011c857539360cfa7b1f97cce84c4f32133c052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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