4d5cdc3
77094e8 ^
1 2 3
4
5 6 7
8
9 10
11 12 13
14 15 16 17 18
#!/bin/sh if which xmessage >> /dev/null 2>&1; then xmessage -buttons console,reboot,halt "$@" ""; case "$?" in 101) /sbin/telinit 3 ;; 102) /sbin/reboot ;; 103) /sbin/poweroff ;; esac fi