# HG changeset patch # User Christophe Lincoln # Date 1305637821 -7200 # Node ID f922801566b23fb8dc6f9e771211735b55145f05 # Parent 815ea1a52cf6501ece63c8145d5fc78b17502f8b Small fix for system.sh and be less verbose on logout diff -r 815ea1a52cf6 -r f922801566b2 etc/init.d/rc.shutdown --- a/etc/init.d/rc.shutdown Mon May 16 23:19:04 2011 +0200 +++ b/etc/init.d/rc.shutdown Tue May 17 15:10:21 2011 +0200 @@ -5,12 +5,11 @@ . /etc/init.d/rc.functions . /etc/rcS.conf +log=/var/lib/shutdown.log + # Bold info message with uptime -clear && echo -e "\n - - \033[1mSystem is going down for reboot or halt.\033[0m - - Uptime:`uptime`\n" +clear && echo "System is going down for reboot or halt." > $log +uptime >> $log # Store last alsa settings. if [ -x /usr/sbin/alsactl ]; then @@ -21,7 +20,7 @@ for daemon in $RUN_DAEMONS do if [ -x /etc/init.d/$daemon ]; then - /etc/init.d/$daemon stop > /dev/null + /etc/init.d/$daemon stop >> $log fi done diff -r 815ea1a52cf6 -r f922801566b2 etc/init.d/system.sh --- a/etc/init.d/system.sh Mon May 16 23:19:04 2011 +0200 +++ b/etc/init.d/system.sh Tue May 17 15:10:21 2011 +0200 @@ -89,7 +89,8 @@ tazlocale fi else - echo -n "Locale configuration: $(cat /etc/locale.conf)" && status + lang=$(cat /etc/locale.conf | fgrep LANG | cut -d "=" -f 2) + echo -n "Locale configuration: $lang" && status fi # Keymap config.