summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-03-05 17:29:33 +0100
committerDirk von Suchodoletz2009-03-05 17:29:33 +0100
commit277e80ac99d77cc02d7a9b1a864237cc96b9af0e (patch)
tree3aaf97380249a6381bd85c2846e5a84f641ba49d /initramfs/stage3-stuff/bin/hwautocfg
parent * updated libc busybox versions to 1.13.2 (with rpm2cpio lzma hack) (diff)
downloadcore-277e80ac99d77cc02d7a9b1a864237cc96b9af0e.tar.gz
core-277e80ac99d77cc02d7a9b1a864237cc96b9af0e.tar.xz
core-277e80ac99d77cc02d7a9b1a864237cc96b9af0e.zip
RTC fix, see ticket #383 ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2678 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index f1cff285..fddba8df 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -1,6 +1,6 @@
#!/bin/ash
# Copyright (c) 2003..2006 - RZ Uni Freiburg
-# Copyright (c) 2006..2008 - OpenSLX GmbH
+# Copyright (c) 2006..2009 - OpenSLX GmbH
#
# This program is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -45,6 +45,8 @@ return 0
hwmain () {
# activate the previously detected devices
[ $DEBUGLEVEL -ge 2 ] || modloadbg=" >/dev/null 2>\&1"
+# check for rtc if not compiled directly into the kernel
+( [ -e /proc/driver/rtc ] || modprobe ${MODPRV} rtc-cmos ) &
waitfor /tmp/hwdataready 10000
sed '/Driver Info #1/,/Config Status:/d' \
/etc/hwinfo.data | grep modprobe | sed "s|.* Cmd: \"||;s|\"|$modloadbg|" \