Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- test -f /usr/share/acpi-support/state-funcs || exit 0
- . /usr/share/acpi-support/power-funcs
- . /usr/share/acpi-support/policy-funcs
- . /etc/default/acpi-support
- [ -x /etc/acpi/local/lid.sh.pre ] && /etc/acpi/local/lid.sh.pre
- if [ `CheckPolicy` = 0]; then exit; fi
- grep -q closed /proc/acpi/button/lid/*/state
- if [ $? = 0 ]
- then
- pm-suspend
- else
- echo blablabla
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement