]> err.no Git - util-linux/commitdiff
check for existance of rcS before sourcing it.
authorLaMont Jones <lamont@debian.org>
Wed, 12 May 2010 07:53:10 +0000 (09:53 +0200)
committerLaMont Jones <lamont@debian.org>
Wed, 12 May 2010 07:53:47 +0000 (09:53 +0200)
Signed-off-by: LaMont Jones <lamont@debian.org>
debian/hwclock.sh

index 9f5f345d3c5af82fec22162027acaa9aa0498c3c..d5002878092090e2f0cc9b7c686197381e6c3ced 100644 (file)
@@ -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 "$@"; }