2024-10-23 18:51:56 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-11-15 13:29:50 +01:00
|
|
|
infinite inotifyd echo /root | awk '
|
2024-10-23 18:51:56 +02:00
|
|
|
|
|
|
|
# listen for writes to rootdir and send them to DOM
|
2024-11-15 13:29:50 +01:00
|
|
|
/^[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") }
|
2024-10-23 18:51:56 +02:00
|
|
|
|
|
|
|
'
|