slitaz-boot-scripts diff etc/init.d/rc.shutdown @ rev 267
Small fix for system.sh and be less verbose on logout
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 15:10:21 2011 +0200 (2011-05-17) |
parents | 1aca016619c0 |
children |
line diff
1.1 --- a/etc/init.d/rc.shutdown Thu Feb 24 18:49:47 2011 +0100 1.2 +++ b/etc/init.d/rc.shutdown Tue May 17 15:10:21 2011 +0200 1.3 @@ -5,12 +5,11 @@ 1.4 . /etc/init.d/rc.functions 1.5 . /etc/rcS.conf 1.6 1.7 +log=/var/lib/shutdown.log 1.8 + 1.9 # Bold info message with uptime 1.10 -clear && echo -e "\n 1.11 - 1.12 - \033[1mSystem is going down for reboot or halt.\033[0m 1.13 - 1.14 - Uptime:`uptime`\n" 1.15 +clear && echo "System is going down for reboot or halt." > $log 1.16 +uptime >> $log 1.17 1.18 # Store last alsa settings. 1.19 if [ -x /usr/sbin/alsactl ]; then 1.20 @@ -21,7 +20,7 @@ 1.21 for daemon in $RUN_DAEMONS 1.22 do 1.23 if [ -x /etc/init.d/$daemon ]; then 1.24 - /etc/init.d/$daemon stop > /dev/null 1.25 + /etc/init.d/$daemon stop >> $log 1.26 fi 1.27 done 1.28