#!/bin/bash # # shuts the system down and displays a nice message # # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/bin/user_shutdown.sh,v 1.1 2008-06-04 19:56:01 niro Exp $ if [ -x /usr/bin/Xdialog ] then /usr/bin/Xdialog \ --title "Shutdown" \ --no-buttons \ --infobox "System shutdown in progress ..." 6 34 5000 \ & sudo /sbin/halt else sudo /sbin/halt fi