2 |
# |
# |
3 |
# reboots the system and displays a nice message |
# 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.2 2005-04-12 20:48:36 niro Exp $ |
# $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 ] |
if [ -x /usr/bin/Xdialog ] |
8 |
then |
then |
9 |
/usr/bin/Xdialog \ |
/usr/bin/Xdialog \ |
10 |
--title "Reboot" \ |
--title "Reboot" \ |
11 |
--no-buttons \ |
--no-buttons \ |
12 |
--infobox "System reboot in progress ..." 6 30 5000 \ |
--infobox "System reboot in progress ..." 6 34 5000 \ |
13 |
& sudo /sbin/reboot |
& sudo /sbin/reboot |
14 |
else |
else |
15 |
sudo /sbin/reboot |
sudo /sbin/reboot |