Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 537 - (hide annotations) (download) (as text)
Mon Jan 26 17:16:32 2009 UTC (15 years, 3 months ago) by niro
File MIME type: application/x-sh
File size: 268 byte(s)
-fixed header
1 niro 414 #!/bin/bash
2     #
3     # reboots the system and displays a nice message
4     #
5 niro 537 # $Id$
6 niro 414
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