Annotation of /alx-src/branches/alxconf-060/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 1999 -
(hide annotations)
(download)
(as text)
Mon May 9 14:36:06 2011 UTC (13 years ago) by niro
File MIME type: application/x-sh
File size: 258 byte(s)
Mon May 9 14:36:06 2011 UTC (13 years ago) by niro
File MIME type: application/x-sh
File size: 258 byte(s)
-fixed header -do not use full pathes, rely on PATH environment
1 | niro | 238 | #!/bin/bash |
2 | # shuts the system down and displays a nice message | ||
3 | niro | 1999 | # $Id$ |
4 | niro | 238 | |
5 | niro | 1999 | if [ -x $(which Xdialog) ] |
6 | niro | 238 | then |
7 | niro | 1999 | Xdialog \ |
8 | niro | 240 | --title "Shutdown" \ |
9 | niro | 238 | --no-buttons \ |
10 | niro | 309 | --infobox "System shutdown in progress ..." 6 34 5000 \ |
11 | niro | 238 | & sudo /sbin/halt |
12 | else | ||
13 | sudo /sbin/halt | ||
14 | fi |