You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
211 B
20 lines
211 B
8 years ago
|
#!/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
|