xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/watchfs

11 lines
469 B
Text
Raw Permalink Normal View History

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") }
2025-06-20 17:16:55 +02:00
#/.*/ { system("logger "$0) }
2024-10-23 18:51:56 +02:00
'