From b523ca5d931e47f684dcb828c82572169c1cf625 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Mon, 6 Feb 2006 11:56:43 +0000 Subject: Fixed small bug in mkdxsinitrd/repco (link copying) and moved the udev/hotplug stuff into distro-specific functions file. git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@62 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index e85c0d9e..bcb42c52 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -38,27 +38,8 @@ mkdir -p ${DEVDIR}/.udevdb echo 256 > /proc/sys/kernel/real-root-dev [ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys -# start device auto discovery (just the second case is tested yet) -if [ -d /etc/hotplug -a -d /etc/hotplug.d ] ; then - # older style udev/hotplug e.g. SuSE9.3 - echo "Enabling hotplug/udev" - #echo "/bin/hotplug" > /proc/sys/kernel/hotplug - udevstart - udevd -d -elif [ -x /bin/udev -a -x /bin/udevstart ] ; then - # new style udev e.g. SuSE10.0, Ubuntu5.10(?) - 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 [ -s /dev.tgz ] ; then - echo "Using traditional static /dev entries" - tar -xpzf /dev.tgz -C / & -fi +# start device auto discovery service - distro specific function +udev_hotplug # read kernel commandline TMPFSSIZE="50%" export DEBUGLEVEL=0 -- cgit v1.2.3-55-g7522