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