slitaz-boot-scripts 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 | 815ea1a52cf6 |
children | bfb8a5936ba1 |
files | etc/init.d/rc.shutdown etc/init.d/system.sh |
line diff
1.1 --- a/etc/init.d/rc.shutdown Mon May 16 23:19:04 2011 +0200 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
2.1 --- a/etc/init.d/system.sh Mon May 16 23:19:04 2011 +0200 2.2 +++ b/etc/init.d/system.sh Tue May 17 15:10:21 2011 +0200 2.3 @@ -89,7 +89,8 @@ 2.4 tazlocale 2.5 fi 2.6 else 2.7 - echo -n "Locale configuration: $(cat /etc/locale.conf)" && status 2.8 + lang=$(cat /etc/locale.conf | fgrep LANG | cut -d "=" -f 2) 2.9 + echo -n "Locale configuration: $lang" && status 2.10 fi 2.11 2.12 # Keymap config.