diff options
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 |
commit | 77094e88d100bcf77f1a65fcd0c8f408d7bf0650 (patch) | |
tree | ff4e9de895ddfb74788d034e061d3a68759ac299 /xdm | |
parent | 6937b7f6dc9dac7d8f9bad92b5ca599d8e3702a1 (diff) | |
download | liveslak-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-x | xdm/buttons | 7 |
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 |