summaryrefslogtreecommitdiffstats
path: root/initrd
diff options
context:
space:
mode:
authorMichael Janczyk2006-02-01 18:43:28 +0100
committerMichael Janczyk2006-02-01 18:43:28 +0100
commitad75d2584d6145cbd3fe28243d3d692b95d88139 (patch)
treea5eba20aad3875d8ea27548123b03b4a4b40a4b8 /initrd
parentkleine fixes in init (diff)
downloadcore-ad75d2584d6145cbd3fe28243d3d692b95d88139.tar.gz
core-ad75d2584d6145cbd3fe28243d3d692b95d88139.tar.xz
core-ad75d2584d6145cbd3fe28243d3d692b95d88139.zip
Different style of udev(d) ...
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@54 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd')
-rwxr-xr-xinitrd/initrd-stuff/init16
-rwxr-xr-xinitrd/mkdxsinitrd2
2 files changed, 12 insertions, 6 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index db9546a5..d8fe2355 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -38,19 +38,23 @@ 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 first case is tested yet)
-if [ -x /bin/udev -a -x /bin/udevstart ] ; then
+# 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 &
+ udevd --daemon
fi
-elif [ -x /bin/hotplug ] ; then
- echo "Enabling hotplug"
- echo "/bin/hotplug" > /proc/sys/kernel/hotplug
elif [ -s /dev.tgz ] ; then
echo "Using traditional static /dev entries"
tar -xpzf /dev.tgz -C / &
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd
index 546c7124..6395cb2d 100755
--- a/initrd/mkdxsinitrd
+++ b/initrd/mkdxsinitrd
@@ -332,6 +332,8 @@ case "${DISTRO}" in
case "${DISTRO_VER}" in
9*)
DISTRO_VER=9.3
+ # might be needed for older udev/hotplug
+ # cp -a ${ROOTDIR}/etc/hotplug* ${INSTDIR}/etc
;;
10*|*)
DISTRO_VER=10.0