diff options
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 |