mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
setclock: create /dev/rtc symlink if it not exist.
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user