Annotation of /alx-src/branches/alxconf-060/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 238 -
(hide annotations)
(download)
(as text)
Tue Apr 12 20:37:06 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: 371 byte(s)
Tue Apr 12 20:37:06 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: 371 byte(s)
new
1 | niro | 238 | #!/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.1 2005-04-12 20:37:06 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 30 5000 \ | ||
13 | & sudo /sbin/halt | ||
14 | else | ||
15 | sudo /sbin/halt | ||
16 | fi |