summaryrefslogtreecommitdiffstats
path: root/xdm/buttons
diff options
context:
space:
mode:
Diffstat (limited to 'xdm/buttons')
-rwxr-xr-xxdm/buttons7
1 files changed, 5 insertions, 2 deletions
diff --git a/xdm/buttons b/xdm/buttons
index c50acf7..bd51603 100755
--- a/xdm/buttons
+++ b/xdm/buttons
@@ -1,13 +1,16 @@
#!/bin/sh
if which xmessage >> /dev/null 2>&1; then
- xmessage -buttons reboot,halt "$@" "";
+ xmessage -buttons console,reboot,halt "$@" "";
case "$?" in
101)
- /sbin/reboot
+ /sbin/telinit 3
;;
102)
+ /sbin/reboot
+ ;;
+ 103)
/sbin/poweroff
;;
esac