From 1313b031a8e057b580525d4429ad485571844086 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 5 Nov 2012 15:15:57 +0100 Subject: [PATCH] setclock: create /dev/rtc symlink if it not exist. --- src/initscripts/init.d/setclock | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/initscripts/init.d/setclock b/src/initscripts/init.d/setclock index 908d4906ab..50e450387f 100644 --- a/src/initscripts/init.d/setclock +++ b/src/initscripts/init.d/setclock @@ -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 ;; -- 2.39.5