Annotation of /alx-src/tags/alxconf-0_6_6/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 240 -
(hide annotations)
(download)
(as text)
Tue Apr 12 20:48:40 2005 UTC (19 years, 5 months ago) by niro
Original Path: alx-src/trunk/alxconfig-ng/bin/user_shutdown.sh
File MIME type: application/x-sh
File size: 373 byte(s)
Tue Apr 12 20:48:40 2005 UTC (19 years, 5 months ago) by niro
Original Path: alx-src/trunk/alxconfig-ng/bin/user_shutdown.sh
File MIME type: application/x-sh
File size: 373 byte(s)
new
1 | niro | 238 | #!/bin/bash |
2 | # | ||
3 | # shuts the system down and displays a nice message | ||
4 | # | ||
5 | niro | 240 | # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_shutdown.sh,v 1.2 2005-04-12 20:48:40 niro Exp $ |
6 | niro | 238 | |
7 | if [ -x /usr/bin/Xdialog ] | ||
8 | then | ||
9 | /usr/bin/Xdialog \ | ||
10 | niro | 240 | --title "Shutdown" \ |
11 | niro | 238 | --no-buttons \ |
12 | --infobox "System shutdown in progress ..." 6 30 5000 \ | ||
13 | & sudo /sbin/halt | ||
14 | else | ||
15 | sudo /sbin/halt | ||
16 | fi |