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

10 lines
312 B
Plaintext
Raw Normal View History

2024-10-23 18:51:56 +02:00
#!/bin/sh
2024-10-25 15:58:20 +02:00
infinite inotifyd echo /mnt/root | awk '
2024-10-23 18:51:56 +02:00
# listen for writes to rootdir and send them to DOM
2024-10-25 15:58:20 +02:00
/^[ne] \/mnt\/root index\.html/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/html") }
/^[ne] \/mnt\/root index\.js/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/js") }
2024-10-23 18:51:56 +02:00
'