summaryrefslogtreecommitdiffstats
path: root/xdm/buttons
blob: bd516032152e879ca2a1ad411f7cf632565ca8d3 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

if which xmessage >> /dev/null 2>&1; then
	xmessage -buttons console,reboot,halt "$@" "";

	case "$?" in
		101)
			/sbin/telinit 3
			;;
		102)
			/sbin/reboot
			;;
		103)
			/sbin/poweroff
			;;
	esac
fi