diff options
author | Dirk von Suchodoletz | 2006-02-06 22:24:10 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2006-02-06 22:24:10 +0100 |
commit | 44c51a1730d9304f5f5754e3b63419040aa78729 (patch) | |
tree | b713c0829292b9572022e284a6aeba9597f0e4fd /initrd/initrd-stuff | |
parent | Fixed small bug in mkdxsinitrd/repco (link copying) and moved the (diff) | |
download | core-44c51a1730d9304f5f5754e3b63419040aa78729.tar.gz core-44c51a1730d9304f5f5754e3b63419040aa78729.tar.xz core-44c51a1730d9304f5f5754e3b63419040aa78729.zip |
Some tests with SuSE 10.1 revealed bugs in mkdxsinitrd. Added
configuration and functions ...
git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@63 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 27 | ||||
-rwxr-xr-x | initrd/initrd-stuff/init | 3 |
2 files changed, 29 insertions, 1 deletions
diff --git a/initrd/initrd-stuff/etc/functions b/initrd/initrd-stuff/etc/functions index 4125acf5..bb834756 100644 --- a/initrd/initrd-stuff/etc/functions +++ b/initrd/initrd-stuff/etc/functions @@ -10,7 +10,34 @@ # # Version: 0.4.1b +####################################################################### +# generate events with the sysfs trigger +function trigger_device_events() { + list=$(echo /sys/bus/*/devices/*/uevent) + list="$list $(echo /sys/class/*/*/uevent)" + list="$list $(echo /sys/block/*/uevent /sys/block/*/*/uevent)" + for i in $list; do + case "$i" in + */device/uevent|*\**) + continue + ;; + */class/mem/*|*/class/tty/*) + first="$first $i" + ;; + */block/md*) + last="$last $i" + ;; + */*) + default="$default $i" + ;; + esac + done + # trigger the sorted events + for i in \$first \$default \$last; do + echo "add" > "\$i" + done +} ####################################################################### # produce error message and if $2 is empty run (debug) shell diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index bcb42c52..112c1539 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -39,6 +39,7 @@ echo 256 > /proc/sys/kernel/real-root-dev [ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys # start device auto discovery service - distro specific function +bash udev_hotplug # read kernel commandline TMPFSSIZE="50%" @@ -245,7 +246,6 @@ if [ -z "${DNBDOPT}" -a -z "${NBDOPT}" -a -z "${NFSROOT}" ] ; then . /etc/machine-setup NFSROOT=${serverip}:${root_path} fi - # call function for nfs mounts if [ -z "${DNBDOPT}" -a -z "${NBDOPT}" ] ; then nfsmnt ${NFSROOT} ${MODPRV} @@ -382,6 +382,7 @@ of this client did not finish in\n time. You might check the process list \ and list the modules loaded until\n now." # close runlevel script for stuff to execute during early bootup d_mkbootld close +bash # IP configuration is made and should not be updated automatically, udevd # should be killed if started within init killall -9 dhcpcd dhclient pump 2>/dev/null |