10 lines
468 B
Bash
Executable file
10 lines
468 B
Bash
Executable file
#!/bin/sh
|
|
exec inotifyd echo /root /root/.config/launcher | awk '
|
|
|
|
# listen for writes to rootdir and send them to DOM
|
|
/^[wne] \/root index\.html/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/html") }
|
|
/^[wne] \/root index\.js/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/js") }
|
|
/^[wne] \/root\/.config\/launcher/ { system("/root/bin/launcher init") }
|
|
/.*/ { system("logger "$0) }
|
|
|
|
'
|