slitaz-boot-scripts rev 28

Typo and modified shutdown screen output
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 23 01:42:47 2008 +0100 (2008-02-23)
parents 79185a567799
children 1e2fdd797456
files etc/init.d/hwconf.sh etc/init.d/rc.functions etc/init.d/rc.shutdown
line diff
     1.1 --- a/etc/init.d/hwconf.sh	Sat Feb 23 01:40:59 2008 +0100
     1.2 +++ b/etc/init.d/hwconf.sh	Sat Feb 23 01:42:47 2008 +0100
     1.3 @@ -26,7 +26,7 @@
     1.4  			# Start soundconf to config driver and load module for Live mode
     1.5  			/usr/sbin/soundconf
     1.6  		else
     1.7 -			echo "Unable to found : /usr/sbin/soundconf"
     1.8 +			echo "Unable to found: /usr/sbin/soundconf"
     1.9  		fi
    1.10  	else
    1.11  		# /var/lib/sound-card-driver exist so sound is already configured.
    1.12 @@ -39,3 +39,8 @@
    1.13  	alsactl restore
    1.14  	status
    1.15  fi
    1.16 +
    1.17 +# Screen size config for slim/Xvesa.
    1.18 +if [ ! -f /etc/X11/screen.conf -a -e /usr/bin/slim ]; then
    1.19 +	tazx
    1.20 +fi
     2.1 --- a/etc/init.d/rc.functions	Sat Feb 23 01:40:59 2008 +0100
     2.2 +++ b/etc/init.d/rc.functions	Sat Feb 23 01:42:47 2008 +0100
     2.3 @@ -18,7 +18,7 @@
     2.4  usleep_progress()
     2.5  {
     2.6  	CHAR='='
     2.7 -	for i in `seq 80-1`
     2.8 +	for i in `seq 79-1`
     2.9  	do
    2.10  		echo -n "$CHAR"
    2.11  		usleep 28000
     3.1 --- a/etc/init.d/rc.shutdown	Sat Feb 23 01:40:59 2008 +0100
     3.2 +++ b/etc/init.d/rc.shutdown	Sat Feb 23 01:42:47 2008 +0100
     3.3 @@ -11,9 +11,9 @@
     3.4  
     3.5      \033[1mSystem is going down for reboot or halt.\033[0m
     3.6  
     3.7 -    Uptime:`uptime`"
     3.8 -echo ""
     3.9 -usleep_progress
    3.10 +    Uptime:`uptime`
    3.11 +
    3.12 +================================================================================"
    3.13  echo ""
    3.14  
    3.15  # Stop all daemons started at boot time.
    3.16 @@ -33,7 +33,7 @@
    3.17  # Swap off.
    3.18  echo -n "Disabling swap space... "
    3.19  /sbin/swapoff -a
    3.20 -status && sleep 2
    3.21 +status
    3.22  
    3.23  # Kill all processes.
    3.24  echo -n "Killing all processes..."
    3.25 @@ -46,3 +46,7 @@
    3.26  status
    3.27  echo "Unmounting all filesystems... "
    3.28  /bin/umount -a -r
    3.29 +
    3.30 +echo ""
    3.31 +usleep_progress
    3.32 +echo ""