From: LaMont Jones Date: Wed, 12 May 2010 07:53:10 +0000 (+0200) Subject: check for existance of rcS before sourcing it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55bef298f06d6f0a2fec33cd077c7a1a3bb7ba21;p=util-linux check for existance of rcS before sourcing it. Signed-off-by: LaMont Jones --- diff --git a/debian/hwclock.sh b/debian/hwclock.sh index 9f5f345d..d5002878 100644 --- a/debian/hwclock.sh +++ b/debian/hwclock.sh @@ -37,7 +37,7 @@ HCTOSYS_DEVICE=rtc0 hwclocksh() { [ ! -x /sbin/hwclock ] && return 0 - . /etc/default/rcS + [ ! -r /etc/default/rcS ] || . /etc/default/rcS . /lib/lsb/init-functions verbose_log_action_msg() { [ "$VERBOSE" = no ] || log_action_msg "$@"; }