Contents of /alx-src/branches/alxconf_20060908/bin/user_reboot.sh
Parent Directory | Revision Log
Revision 545 -
(show annotations)
(download)
(as text)
Wed Feb 4 20:07:30 2009 UTC (15 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 368 byte(s)
Wed Feb 4 20:07:30 2009 UTC (15 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 368 byte(s)
moved from subdir to main branch dir
1 | #!/bin/bash |
2 | # |
3 | # reboots the system and displays a nice message |
4 | # |
5 | # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_reboot.sh,v 1.3 2005-08-28 19:32:05 niro Exp $ |
6 | |
7 | if [ -x /usr/bin/Xdialog ] |
8 | then |
9 | /usr/bin/Xdialog \ |
10 | --title "Reboot" \ |
11 | --no-buttons \ |
12 | --infobox "System reboot in progress ..." 6 34 5000 \ |
13 | & sudo /sbin/reboot |
14 | else |
15 | sudo /sbin/reboot |
16 | fi |