Annotation of /alx-src/trunk/tinyalxconfig-ng/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 414 -
(hide annotations)
(download)
(as text)
Wed Jun 4 19:56:01 2008 UTC (15 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 377 byte(s)
Wed Jun 4 19:56:01 2008 UTC (15 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 377 byte(s)
-fixed missing script
1 | niro | 414 | #!/bin/bash |
2 | # | ||
3 | # shuts the system down and displays a nice message | ||
4 | # | ||
5 | # $Header: /home/cvsd/alx-cvs/alx-src/tinyalxconfig-ng/bin/user_shutdown.sh,v 1.1 2008-06-04 19:56:01 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 |