Magellan Linux

Contents of /alx-src/branches/alxconf-060/bin/user_shutdown.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 543 - (show annotations) (download) (as text)
Wed Feb 4 19:51:39 2009 UTC (15 years, 3 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/alxconfig-ng/bin/user_shutdown.sh
File MIME type: application/x-sh
File size: 373 byte(s)
- created alxconf_20060908 branch for the stable-050 alx based on tag alxconf_20060908_1
1 #!/bin/bash
2 #
3 # 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.3 2005-08-28 19:32:13 niro Exp $
6
7 if [ -x /usr/bin/Xdialog ]
8 then
9 /usr/bin/Xdialog \
10 --title "Shutdown" \
11 --no-buttons \
12 --infobox "System shutdown in progress ..." 6 34 5000 \
13 & sudo /sbin/halt
14 else
15 sudo /sbin/halt
16 fi