blob: 12cfc9ecd0757c959d8b623db23b413774800a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|