10 lines
311 B
Plaintext
10 lines
311 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
infinite inotifyd echo /mnt/root | awk '
|
||
|
|
||
|
# listen for writes to rootdir and send them to DOM
|
||
|
/^[ce] \/mnt\/root index\.html/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/html") }
|
||
|
/^[ce] \/mnt\/root index\.js/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/js") }
|
||
|
|
||
|
'
|