Magellan Linux

Diff of /alx-src/tags/alxconf-0_6_6/bin/user_shutdown.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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 2  Line 2 
2  # shuts the system down and displays a nice message  # shuts the system down and displays a nice message
3  # $Id$  # $Id$
4    
5  if [ -x $(which Xdialog) ]  if [[ -x $(which Xdialog) ]]
6  then  then
7   Xdialog \   Xdialog \
8   --title "Shutdown" \   --title "Shutdown" \
9   --no-buttons \   --no-buttons \
10   --infobox "System shutdown in progress ..." 6 34 5000 \   --infobox "System shutdown in progress ..." 6 34 5000 \
11   & sudo /sbin/halt   & sudo /sbin/halt
12  elif [ -x $(which xmessage) ]  elif [[ -x $(which xmessage) ]]
13  then  then
14   msg="   msg="
15    System shutdown in progress ...      System shutdown in progress ...  

Legend:
Removed from v.2436  
changed lines
  Added in v.2494