BTN_1 211 B

12345678910111213141516171819
  1. #!/bin/sh
  2. . /lib/functions.sh
  3. . /lib/apm821xx.sh
  4. BOARD=$(apm821xx_board_name)
  5. if [ $BOARD == "wndr4700" ]; then
  6. case "$ACTION" in
  7. released)
  8. rmmod dwc2
  9. ;;
  10. pressed)
  11. modprobe dwc2
  12. ;;
  13. esac
  14. fi
  15. return 0