PageRenderTime 157ms CodeModel.GetById 154ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 3test -f /usr/share/acpi-support/key-constants || exit 0
 4
 5. /usr/share/acpi-support/policy-funcs
 6
 7if [ -z "$*" ] && ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then
 8    exit;
 9fi
10
11pm-powersave $*