Advertisement
Guest User

Untitled

a guest
Jun 1st, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. test -f /usr/share/acpi-support/state-funcs || exit 0
  4.  
  5. . /usr/share/acpi-support/power-funcs
  6. . /usr/share/acpi-support/policy-funcs
  7. . /etc/default/acpi-support
  8.  
  9. [ -x /etc/acpi/local/lid.sh.pre ] && /etc/acpi/local/lid.sh.pre
  10.  
  11. if [ `CheckPolicy` = 0]; then exit; fi
  12.  
  13. grep -q closed /proc/acpi/button/lid/*/state
  14. if [ $? = 0 ]
  15. then
  16. pm-suspend
  17. else
  18. echo blablabla
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement