Diff of /alx-src/tags/alxconf-0_6_6/bin/user_reboot.sh
Parent Directory | Revision Log | Patch
revision 2436 by niro, Thu Jun 16 16:21:43 2011 UTC | revision 2494 by niro, Thu Jun 30 11:25:11 2011 UTC | |
---|---|---|
# | Line 3 | Line 3 |
3 | # $Id$ | # $Id$ |
4 | # | # |
5 | ||
6 | if [ -x $(which Xdialog) ] | if [[ -x $(which Xdialog) ]] |
7 | then | then |
8 | Xdialog \ | Xdialog \ |
9 | --title "Reboot" \ | --title "Reboot" \ |
10 | --no-buttons \ | --no-buttons \ |
11 | --infobox "System reboot in progress ..." 6 34 5000 \ | --infobox "System reboot in progress ..." 6 34 5000 \ |
12 | & sudo /sbin/reboot | & sudo /sbin/reboot |
13 | elif [ -x $(which xmessage) ] | elif [[ -x $(which xmessage) ]] |
14 | then | then |
15 | msg=" | msg=" |
16 | System reboot in progress ... | System reboot in progress ... |
|