blob: 3fd6761204ac1fcfa1531fa01024be3de3987179 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/hush
# create clean setup
mkdir -p /etc/events.conf
mkdir -p /etc/events.d
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
|