Magellan Linux

Diff of /alx-src/branches/alxconf-060/bin/user_shutdown.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

alx-src/trunk/alxconfig-ng/bin/user_shutdown.sh revision 240 by niro, Tue Apr 12 20:48:40 2005 UTC alx-src/branches/alxconf-060/bin/user_shutdown.sh revision 1999 by niro, Mon May 9 14:36:06 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
 #  
2  # shuts the system down and displays a nice message  # shuts the system down and displays a nice message
3  #  # $Id$
 # $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/bin/user_shutdown.sh,v 1.2 2005-04-12 20:48:40 niro Exp $  
4    
5  if [ -x /usr/bin/Xdialog ]  if [ -x $(which Xdialog) ]
6  then  then
7   /usr/bin/Xdialog \   Xdialog \
8   --title "Shutdown" \   --title "Shutdown" \
9   --no-buttons \   --no-buttons \
10   --infobox "System shutdown in progress ..." 6 30 5000 \   --infobox "System shutdown in progress ..." 6 34 5000 \
11   & sudo /sbin/halt   & sudo /sbin/halt
12  else  else
13   sudo /sbin/halt   sudo /sbin/halt

Legend:
Removed from v.240  
changed lines
  Added in v.1999