mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 17:18:59 +00:00
f12a32630f
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
19 lines
183 B
Bash
Executable File
19 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
|