SVN: rc-scripts/trunk/rc.d/init.d/functions
glen
glen at pld-linux.org
Mon Sep 18 14:41:20 CEST 2006
Author: glen
Date: Mon Sep 18 14:41:17 2006
New Revision: 7788
Modified:
rc-scripts/trunk/rc.d/init.d/functions
Log:
Trap and hide errors when reading msg cachefile.
Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions (original)
+++ rc-scripts/trunk/rc.d/init.d/functions Mon Sep 18 14:41:17 2006
@@ -919,8 +919,7 @@
# We store cache in /etc, as /var isn't available at boot time.
local cachefile='/etc/rc.d/.rc-scripts.cache'
if [ -f "$cachefile" -a "$cachefile" -nt /etc/sysconfig/system -a "$cachefile" -nt /etc/sysconfig/init-colors ]; then
- . "$cachefile"
- return
+ . "$cachefile" 2>/dev/null && return
fi
# primitive caching
@@ -929,7 +928,7 @@
_started=$(progress "WORK")
_fail=$(progress "FAIL" "$CFAIL")
_died=$(progress "DIED" "$CFAIL")
- cat <<-EOF > "$cachefile" 2>/dev/null
+ cat <<-EOF 2>/dev/null > "$cachefile"
_busy='$_busy';
_ok='$_ok';
_started='$_started';
More information about the pld-cvs-commit
mailing list