123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #! /bin/sh
- case "$1" in
- start)
- EHC1=$(cat /proc/acpi/wakeup | grep EHC1 | grep enabled | wc -l)
- EHC2=$(cat /proc/acpi/wakeup | grep EHC2 | grep enabled | wc -l)
- if [ "$EHC1" -gt 0 ]
- then
- echo EHC1 > /proc/acpi/wakeup
- fi
- if [ "$EHC2" -gt 0 ]
- then
- echo EHC2 > /proc/acpi/wakeup
- fi
- ;;
- status)
- cat /proc/acpi/wakeup | grep EHC
- ;;
- *)
- echo "Usage: /etc/init.d/libreboot_usb_bugfix {start|status}"
- exit 1
- esac
- exit 0
|