/acpi/power.sh

http://github.com/brinkman83/bashrc · Shell · 11 lines · 6 code · 4 blank · 1 comment · 4 complexity · e8535a40f03bcaf9e8d6c138b67210d3 MD5 · raw file

  1. #!/bin/sh
  2. test -f /usr/share/acpi-support/key-constants || exit 0
  3. . /usr/share/acpi-support/policy-funcs
  4. if [ -z "$*" ] && ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then
  5. exit;
  6. fi
  7. pm-powersave $*