From 6214a05ea023b8bc3014d8032af18b2404276d00 Mon Sep 17 00:00:00 2001 From: Roman Kyrylych Date: Sat, 8 Mar 2008 18:45:24 +0200 Subject: Create /dev/rtc before running hwclock (FS#9636) Signed-off-by: Roman Kyrylych --- rc.sysinit | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 3e71755..f539fef 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -52,6 +52,12 @@ mount -n -t sysfs none /sys /sbin/modprobe usbcore >/dev/null 2>&1 grep -qw usbfs /proc/filesystems && mount -n -t usbfs none /proc/bus/usb +# enable rtc access +/bin/mkdir /dev/misc/bin/ +/bin/mknod /dev/misc/rtc0 c 252 0 +/bin/ln -s /dev/misc/rtc0 +/dev/rtc/sbin/modprobe rtc-cmos >/dev/null 2>&1 + HWCLOCK_PARAMS="--hctosys" if [ "$HARDWARECLOCK" = "UTC" ]; then HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc" -- cgit v1.2.3