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/etc/functions | |
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/etc/functions')
-rw-r--r-- | initrd/initrd-stuff/etc/functions | 27 |
1 files changed, 27 insertions, 0 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 |