diff options
Diffstat (limited to 'initrd/distro-specs/suse')
| -rw-r--r-- | initrd/distro-specs/suse/functions-10.0 | 18 | ||||
| -rw-r--r-- | initrd/distro-specs/suse/functions-9.3 | 15 |
2 files changed, 30 insertions, 3 deletions
diff --git a/initrd/distro-specs/suse/functions-10.0 b/initrd/distro-specs/suse/functions-10.0 index df6239e4..da7891f8 100644 --- a/initrd/distro-specs/suse/functions-10.0 +++ b/initrd/distro-specs/suse/functions-10.0 @@ -3,7 +3,7 @@ # changes should be done there, version specific changes for # the 10.0 here. # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 03-02-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 06-02-2006 # Blabla # Blub # @@ -11,6 +11,22 @@ # # Version: 0.2.1c +# 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 +} + # acpi and powersave have changed config_acpi () { local start_acpi=10 diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3 index 44d28ce5..3b3412c8 100644 --- a/initrd/distro-specs/suse/functions-9.3 +++ b/initrd/distro-specs/suse/functions-9.3 @@ -4,13 +4,13 @@ # functions file). This file is the main base for the # following SuSE distributions # -# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 05-02-2006 +# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 06-02-2006 # Blabla # Blub # # Copyright: (c) 2006 - RZ Universitaet Freiburg # -# Version: 0.2.1c +# Version: 0.2.1d # distro specific stuff to initialize preinit () { @@ -18,6 +18,17 @@ preinit () { : } +# udev/hotplug - auto device discovery service +udev_hotplug () { +local result=0 +[ -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 +udevd -d || result=1 +return $result +} + # linking runlevel scripts rllinker () { local script="$1" |
