diff options
author | Sebastian | 2010-02-10 22:05:24 +0100 |
---|---|---|
committer | Sebastian | 2010-02-10 22:05:24 +0100 |
commit | d5ee712ea0a8e8c782ee50c7a8f7e51448173aab (patch) | |
tree | d68b18484462499862ffe9a0aa5402a33e9f8b98 /boot-env/pbs/uclib-rootfs/bin/bbinit | |
parent | hack to enable loading of virtio_net after virtio_pci, maybe nex time via mod... (diff) | |
download | core-d5ee712ea0a8e8c782ee50c7a8f7e51448173aab.tar.gz core-d5ee712ea0a8e8c782ee50c7a8f7e51448173aab.tar.xz core-d5ee712ea0a8e8c782ee50c7a8f7e51448173aab.zip |
initial import of event based bbinit script (still not included in the real init)
Diffstat (limited to 'boot-env/pbs/uclib-rootfs/bin/bbinit')
-rwxr-xr-x | boot-env/pbs/uclib-rootfs/bin/bbinit | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/boot-env/pbs/uclib-rootfs/bin/bbinit b/boot-env/pbs/uclib-rootfs/bin/bbinit new file mode 100755 index 00000000..6edb69aa --- /dev/null +++ b/boot-env/pbs/uclib-rootfs/bin/bbinit @@ -0,0 +1,17 @@ +#!/bin/hush + +# create clean setup +rm /etc/events.d/* +for f in $(ls -1 /etc/events) +do + ln -sf /etc/events/$f /etc/events.d/$f +done + +mkdir -p /tmp/event +rm /tmp/event/* +rm /tmp/events + +# start bbinit +inotifyd /bin/handleEvents /tmp/event/:n & +# initial call (executing all zero dependent scipts) +handleEvents |