diff options
| author | Dirk von Suchodoletz | 2006-02-06 12:56:43 +0100 |
|---|---|---|
| committer | Dirk von Suchodoletz | 2006-02-06 12:56:43 +0100 |
| commit | b523ca5d931e47f684dcb828c82572169c1cf625 (patch) | |
| tree | 6f86453a9e6487ec0a611861a6fc9d381339dffe /initrd/distro-specs/gentoo | |
| parent | Small hack to handle start of display manager in a better way - avoid (diff) | |
| download | core-b523ca5d931e47f684dcb828c82572169c1cf625.tar.gz core-b523ca5d931e47f684dcb828c82572169c1cf625.tar.xz core-b523ca5d931e47f684dcb828c82572169c1cf625.zip | |
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
Diffstat (limited to 'initrd/distro-specs/gentoo')
| -rw-r--r-- | initrd/distro-specs/gentoo/functions-2005.1 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/initrd/distro-specs/gentoo/functions-2005.1 b/initrd/distro-specs/gentoo/functions-2005.1 index 5f7afa09..6fa20cdd 100644 --- a/initrd/distro-specs/gentoo/functions-2005.1 +++ b/initrd/distro-specs/gentoo/functions-2005.1 @@ -1,3 +1,19 @@ +# udev service - not checked! +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 +} + # initialize boot.ld - skript to be executed during early system startup # (before most of the normal boot init scripts) # this script should operate like a normal runlevel script |
