/acpi/power.sh
http://github.com/brinkman83/bashrc · Shell · 11 lines · 6 code · 4 blank · 1 comment · 4 complexity · e8535a40f03bcaf9e8d6c138b67210d3 MD5 · raw file
- #!/bin/sh
- test -f /usr/share/acpi-support/key-constants || exit 0
- . /usr/share/acpi-support/policy-funcs
- if [ -z "$*" ] && ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then
- exit;
- fi
- pm-powersave $*