slitaz-boot-scripts diff etc/init.d/rc.shutdown @ rev 23

Shutdown/reboot starting with progress bar
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 15 15:02:26 2008 +0100 (2008-02-15)
parents 177e91b4a3fa
children f34a92a12c88
line diff
     1.1 --- a/etc/init.d/rc.shutdown	Mon Jan 14 10:21:08 2008 +0100
     1.2 +++ b/etc/init.d/rc.shutdown	Fri Feb 15 15:02:26 2008 +0100
     1.3 @@ -5,12 +5,15 @@
     1.4  . /etc/init.d/rc.functions
     1.5  . /etc/rcS.conf
     1.6  
     1.7 +# Message with progress bar
     1.8 +echo -e "
     1.9 +================================================================================
    1.10 +
    1.11 +    \033[1mSystem is going down for reboot or halt.\033[0m
    1.12 +
    1.13 +    Uptime:`uptime`"
    1.14  echo ""
    1.15 -echo "========"
    1.16 -echo ""
    1.17 -echo -e "\033[1m        System is going down for reboot or halt.\033[0m"
    1.18 -echo ""
    1.19 -echo "========"
    1.20 +usleep_progress
    1.21  echo ""
    1.22  
    1.23  # Stop all daemons started at boot time.
    1.24 @@ -42,4 +45,4 @@
    1.25  mount -o remount,ro /
    1.26  status
    1.27  echo "Unmounting all filesystems... "
    1.28 -/bin/umount -a
    1.29 +/bin/umount -a -r