From 97233730f252dd01b0b6d9a860ff8fa5df0222c7 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Wed, 15 Aug 2012 18:58:59 +0200 Subject: [PATCH] setclock: exit when /proc/driver/rtc cannot be found (no rtc) Signed-off-by: Davide Madrisan --- etc/rc.d/init.d/setclock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/init.d/setclock b/etc/rc.d/init.d/setclock index 84491f1..fd27061 100755 --- a/etc/rc.d/init.d/setclock +++ b/etc/rc.d/init.d/setclock @@ -4,13 +4,14 @@ # Based on setclock script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org +[ -e /proc/driver/rtc ] || exit 0 + . /etc/sysconfig/rc . $rc_functions [ -r /etc/sysconfig/clock ] && . /etc/sysconfig/clock CLOCKPARAMS="--directisa" -#CLOCKPARAMS="--systohc --directisa" case "$UTC" in yes|true|1)