2024-10-23 18:51:56 +02:00
|
|
|
#!/bin/sh
|
2025-05-22 17:18:11 +02:00
|
|
|
exec inotifyd echo /root /root/.config/launcher | awk '
|
2024-10-23 18:51:56 +02:00
|
|
|
|
|
|
|
|
# listen for writes to rootdir and send them to DOM
|
2025-05-22 17:18:11 +02: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") }
|
|
|
|
|
/^[wne] \/root\/.config\/launcher/ { system("/root/bin/launcher init") }
|
|
|
|
|
/.*/ { system("logger "$0) }
|
2024-10-23 18:51:56 +02:00
|
|
|
|
|
|
|
|
'
|