This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# /usr/lib/pm-utils/sleep.d/45fix-usb-wakup | |
# Disable wakup from USB devices on Sony Vaio 1311s9rb | |
function print_state { | |
cat /proc/acpi/wakeup | grep $1 | cut -f3 | cut -d' ' -f1 | tr -d '*' | |
} | |
function disable_wakup { |