treewide: use the generic board_name function
[openwrt/openwrt.git] / target / linux / apm821xx / base-files / etc / rc.button / BTN_1
1 #!/bin/sh
2
3 . /lib/functions.sh
4
5 BOARD=$(board_name)
6
7 if [ $BOARD == "wndr4700" ]; then
8 case "$ACTION" in
9 released)
10 rmmod dwc2
11 ;;
12 pressed)
13 modprobe dwc2
14 ;;
15 esac
16 fi
17
18 return 0