setclock: create /dev/rtc symlink if it not exist.

This commit is contained in:
Arne Fitzenreiter
2012-11-05 15:15:57 +01:00
parent cec995ab18
commit 1313b031a8

View File

@@ -19,7 +19,14 @@ CLOCKPARAMS=
case ${1} in
start)
boot_mesg "Setting system clock..."
# udev not create the rtc symlink if rtc is in the kernel
if [ ! -e /dev/rtc ]; then
ln -s rtc0 /dev/rtc
fi
hwclock --hctosys ${CLOCKPARAMS} &>/dev/null
evaluate_retval
;;