From 4d5cdc379e338c1c28f4d7d09226d4167a3f9e1e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 28 Nov 2015 01:52:06 +0100 Subject: Slackware Live Edition: initial commit. This is Beta 2. Read http://alien.slackbook.org/blog/slackware-live-edition-beta-2 for all the details. --- xdm/buttons | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 xdm/buttons (limited to 'xdm/buttons') 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 + -- cgit v1.2.3