summaryrefslogtreecommitdiffstats
path: root/xdm
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-02-02 11:49:43 +0100
committer Eric Hameleers <alien@slackware.com>2016-02-02 11:49:43 +0100
commit77094e88d100bcf77f1a65fcd0c8f408d7bf0650 (patch)
treeff4e9de895ddfb74788d034e061d3a68759ac299 /xdm
parent6937b7f6dc9dac7d8f9bad92b5ca599d8e3702a1 (diff)
downloadliveslak-77094e88d100bcf77f1a65fcd0c8f408d7bf0650.tar.gz
liveslak-77094e88d100bcf77f1a65fcd0c8f408d7bf0650.tar.xz
XDM: add a 'console' button for easy access to a console login session.
Diffstat (limited to 'xdm')
-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