Just a minor note: missing semicolon in the above snippet. The correct snippet is
if grep -q "EHC1.*enabled" /proc/acpi/wakeup; then echo EHC1 > /proc/acpi/wakeup fi
Just a minor note: missing semicolon in the above snippet. The correct snippet is
if grep -q "EHC1.*enabled" /proc/acpi/wakeup; then
echo EHC1 > /proc/acpi/wakeup
fi