f12a32630f
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
18 lines
183 B
Bash
Executable file
18 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
|