Contents of /alx-src/branches/alxconf-060/bin/user_reboot.sh
Parent Directory | Revision Log
Revision 238 -
(show annotations)
(download)
(as text)
Tue Apr 12 20:37:06 2005 UTC (19 years, 5 months ago) by niro
Original Path: alx-src/trunk/alxconfig-ng/bin/user_reboot.sh
File MIME type: application/x-sh
File size: 368 byte(s)
Tue Apr 12 20:37:06 2005 UTC (19 years, 5 months ago) by niro
Original Path: alx-src/trunk/alxconfig-ng/bin/user_reboot.sh
File MIME type: application/x-sh
File size: 368 byte(s)
new
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.1 2005-04-12 20:37:01 niro Exp $ |
6 | |
7 | if [ -x /usr/bin/Xdialog ] |
8 | then |
9 | /usr/bin/Xdialog \ |
10 | --title Shutdown \ |
11 | --no-buttons \ |
12 | --infobox "System reboot in progress ..." 6 30 5000 \ |
13 | & sudo /sbin/reboot |
14 | else |
15 | sudo /sbin/reboot |
16 | fi |