summaryrefslogtreecommitdiffstats
path: root/xdm/buttons
blob: c50acf7ae6158a0e377c5d91abaf883b6c27f41f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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