Annotation of /alx-src/branches/alxconf-060/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 309 -
(hide annotations)
(download)
(as text)
Sun Aug 28 19:32:13 2005 UTC (19 years, 1 month 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)
Sun Aug 28 19:32:13 2005 UTC (19 years, 1 month 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)
- bigger width for the msgbox
1 | niro | 238 | #!/bin/bash |
2 | # | ||
3 | # shuts the system down and displays a nice message | ||
4 | # | ||
5 | niro | 309 | # $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 | 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 | niro | 309 | --infobox "System shutdown in progress ..." 6 34 5000 \ |
13 | niro | 238 | & sudo /sbin/halt |
14 | else | ||
15 | sudo /sbin/halt | ||
16 | fi |