Magellan Linux

Annotation of /alx-src/trunk/alxconfig-ng/bin/user_reboot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 240 - (hide annotations) (download) (as text)
Tue Apr 12 20:48:40 2005 UTC (19 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 368 byte(s)
new

1 niro 238 #!/bin/bash
2     #
3     # reboots the system and displays a nice message
4     #
5 niro 240 # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_reboot.sh,v 1.2 2005-04-12 20:48:36 niro Exp $
6 niro 238
7     if [ -x /usr/bin/Xdialog ]
8     then
9     /usr/bin/Xdialog \
10 niro 240 --title "Reboot" \
11 niro 238 --no-buttons \
12     --infobox "System reboot in progress ..." 6 30 5000 \
13     & sudo /sbin/reboot
14     else
15     sudo /sbin/reboot
16     fi