From df2e9536f00aeac555180754afcf0be40a6f7104 Mon Sep 17 00:00:00 2001 From: Felix Endres Date: Fri, 10 Feb 2006 11:56:27 +0000 Subject: Neues Standardnetzwerkmodul Distroerkennungsverbesserung Udevfehlersuche git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@70 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/distro-specs/ubuntu/functions-5.10 | 33 ++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'initrd/distro-specs') diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10 index e5233bb7..a82e0111 100644 --- a/initrd/distro-specs/ubuntu/functions-5.10 +++ b/initrd/distro-specs/ubuntu/functions-5.10 @@ -15,23 +15,34 @@ preinit () { echo "dhcp:x:101:">>/etc/group echo "dhcp:x:101:101::/nonexistent:/bin/false">>/etc/passwd } - -# udev service +# AUS SuSE-9.3 +# udev/hotplug - auto device discovery service udev_hotplug () { local result=0 -echo "Starting udev" +[ -d /etc/hotplug -a -d /etc/hotplug.d ] || error " Hotplug subdirectory \ +is missing! udev(d) might not work as expected." nonfatal +echo "Enabling hotplug/udev" udevstart || result=1 -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 || result=1 -else error " udev daemon is not available. Some devices might not \ -apprear." nonfatal -fi +udevd -d || result=1 return $result } +## udev service +#udev_hotplug () { +#local result=0 +#echo "Starting udev" +#udevstart || result=1 +#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 || result=1 +#else error " udev daemon is not available. Some devices might not \ +#apprear." nonfatal +#fi +#return $result +#} + # linking runlevel scripts rllinker () { local script="$1" -- cgit v1.2.3-55-g7522