summarylogtreecommitdiffstats
path: root/buttons
blob: e4dc6f50b819d483e4f7710e242750baad370db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

xmessage -buttons reboot,halt,poweroff "$@" ""

case "$?" in
	101)
		/sbin/reboot
		;;
	102)
		/sbin/halt
		;;
	103)
		/sbin/poweroff
		;;
esac