setclock: exit when /proc/driver/rtc cannot be found (no rtc)

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-08-15 18:58:59 +02:00
parent 6177fa91d3
commit 97233730f2

View File

@ -4,13 +4,14 @@
# Based on setclock script from LFS-3.1 and earlier. # Based on setclock script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
[ -e /proc/driver/rtc ] || exit 0
. /etc/sysconfig/rc . /etc/sysconfig/rc
. $rc_functions . $rc_functions
[ -r /etc/sysconfig/clock ] && . /etc/sysconfig/clock [ -r /etc/sysconfig/clock ] && . /etc/sysconfig/clock
CLOCKPARAMS="--directisa" CLOCKPARAMS="--directisa"
#CLOCKPARAMS="--systohc --directisa"
case "$UTC" in case "$UTC" in
yes|true|1) yes|true|1)