Magellan Linux

Annotation of /alx-src/branches/alxconf_20060908/bin/user_reboot.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 545 - (hide annotations) (download) (as text)
Wed Feb 4 20:07:30 2009 UTC (15 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 368 byte(s)
moved from subdir to main branch dir
1 niro 238 #!/bin/bash
2     #
3     # reboots the system and displays a nice message
4     #
5 niro 309 # $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 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 niro 309 --infobox "System reboot in progress ..." 6 34 5000 \
13 niro 238 & sudo /sbin/reboot
14     else
15     sudo /sbin/reboot
16     fi