2 |
# |
# |
3 |
# shuts the system down and displays a nice message |
# shuts the system down and displays a nice message |
4 |
# |
# |
5 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_shutdown.sh,v 1.2 2005-04-12 20:48:40 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_shutdown.sh,v 1.3 2005-08-28 19:32:13 niro Exp $ |
6 |
|
|
7 |
if [ -x /usr/bin/Xdialog ] |
if [ -x /usr/bin/Xdialog ] |
8 |
then |
then |
9 |
/usr/bin/Xdialog \ |
/usr/bin/Xdialog \ |
10 |
--title "Shutdown" \ |
--title "Shutdown" \ |
11 |
--no-buttons \ |
--no-buttons \ |
12 |
--infobox "System shutdown in progress ..." 6 30 5000 \ |
--infobox "System shutdown in progress ..." 6 34 5000 \ |
13 |
& sudo /sbin/halt |
& sudo /sbin/halt |
14 |
else |
else |
15 |
sudo /sbin/halt |
sudo /sbin/halt |