Annotation of /alx-src/trunk/tinyalxconfig-ng/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 537 -
(hide annotations)
(download)
(as text)
Mon Jan 26 17:16:32 2009 UTC (15 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 271 byte(s)
Mon Jan 26 17:16:32 2009 UTC (15 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 271 byte(s)
-fixed header
1 | niro | 414 | #!/bin/bash |
2 | # | ||
3 | # shuts the system down and displays a nice message | ||
4 | # | ||
5 | niro | 537 | # $Id$ |
6 | niro | 414 | |
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 |