summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-01-29 16:23:57 +0100
committerDirk von Suchodoletz2006-01-29 16:23:57 +0100
commit96c2314f22400aa67c6fc8ce5ceee8cf6429e48e (patch)
tree4df04e07372b865ab87241b3d74b31cd316227ec /initrd/initrd-stuff/init
parenteinige bugfixes (diff)
downloadcore-96c2314f22400aa67c6fc8ce5ceee8cf6429e48e.tar.gz
core-96c2314f22400aa67c6fc8ce5ceee8cf6429e48e.tar.xz
core-96c2314f22400aa67c6fc8ce5ceee8cf6429e48e.zip
Added udevd to initial ramdisk. All devices seem to appear by now. Added
oss compat. to hwautocfg and fixed some minor bugs ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@45 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init19
1 files changed, 10 insertions, 9 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 4f9333ac..4b4bffb9 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -40,13 +40,14 @@ echo 256 > /proc/sys/kernel/real-root-dev
# start device auto discovery (just the first case is tested yet)
if [ -x /bin/udev -a -x /bin/udevstart ] ; then
-# if [ -x /bin/hotplug.sh ]; then
-# echo "/bin/hotplug.sh" > /proc/sys/kernel/hotplug
-# testmkd /events
-# else
- echo "/bin/udev" > /proc/sys/kernel/hotplug
-# fi
+ echo "Starting udev"
/bin/udevstart
+ if [ -x /bin/udevd ] ; then
+ export UDEVD_EXPECTED_SEQNUM=$(cat /sys/kernel/hotplug_seqnum)
+ export UDEVD_EVENT_TIMEOUT=1
+ echo "" > /proc/sys/kernel/hotplug
+ udevd --daemon
+ fi
elif [ -x /bin/hotplug ] ; then
echo "Enabling hotplug"
echo "/bin/hotplug" > /proc/sys/kernel/hotplug
@@ -382,14 +383,14 @@ waitfor /tmp/svcfg 20000 || error " For some reason the software config \
of this client did not finish in\n time. You might check the process list \
and list the modules loaded until\n now."
# IP configuration is made and should not be updated automatically
-killall -9 dhcpcd dhclient pump 2>/dev/null
+killall -9 dhcpcd dhclient pump udevd 2>/dev/null
# unmount the bind mounted modules directory
umount -n /lib/modules/${KERNEL} || error "Unmount of the kernel \
modules directory failed for some reason."
# close runlevel script for stuff to execute during early bootup
d_mkbootld close
-# reset hotplug
-echo "/sbin/hotplug" > /proc/sys/kernel/hotplug
+
+# check for inittab file
test -f /mnt/etc/inittab || error " The file /etc/inittab does not exist or \
is no regular one. It is needed\n for the bootup procedure to follow."
umount -n /sys || error " Unmount of the kernel sys directory \