summaryrefslogblamecommitdiffstats
path: root/xdm/buttons
blob: bd516032152e879ca2a1ad411f7cf632565ca8d3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                         
                                                      


                    
                                       

                          


                                    




                                      
#!/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