diff options
Diffstat (limited to '')
-rwxr-xr-x | xdm/buttons | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xdm/buttons b/xdm/buttons new file mode 100755 index 0000000..c50acf7 --- /dev/null +++ b/xdm/buttons @@ -0,0 +1,15 @@ +#!/bin/sh + +if which xmessage >> /dev/null 2>&1; then + xmessage -buttons reboot,halt "$@" ""; + + case "$?" in + 101) + /sbin/reboot + ;; + 102) + /sbin/poweroff + ;; + esac +fi + |