diff options
author | Florian Pritz <f-p@gmx.at> | 2008-10-23 19:52:30 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2008-10-23 19:52:30 +0200 |
commit | c597b01166c4ac4d042c2256826b69c6fb0bc405 (patch) | |
tree | 72f0971a761070273b625650c7cb40149db02ef7 /openbox_shutdown.sh | |
download | bin-c597b01166c4ac4d042c2256826b69c6fb0bc405.tar.gz bin-c597b01166c4ac4d042c2256826b69c6fb0bc405.tar.xz |
first init
Diffstat (limited to 'openbox_shutdown.sh')
-rwxr-xr-x | openbox_shutdown.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openbox_shutdown.sh b/openbox_shutdown.sh new file mode 100755 index 0000000..12cfc9e --- /dev/null +++ b/openbox_shutdown.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +gxmessage "What do you want to do?" -center -title "Shut down?" -buttons "Cancel:1,Halt:2,Reboot:3,Suspend:4" -borderless + +case $? in + 1) echo "Exit" ;; + + 2) sudo shutdown -h now ;; + + 3) sudo shutdown -r now ;; + + 4) sudo pm-suspend ;; +esac |