mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-07 04:34:05 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
0d155c70be
commit
32600acc60
14258 files changed
+3954570
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
CONFIG_NAME='tinyfilemanager'
|
||||
|
||||
while :; do
|
||||
inotifywait -e modify $CONF 2>/dev/null
|
||||
|
||||
CONFIG="$(sed -En "/^\\\$CONFIG\s*=.*/{s|^.+'(.+)'.*|\1|p}" $CONF)"
|
||||
if [ -n "$CONFIG" ]; then
|
||||
uci set $CONFIG_NAME.@$TYPEDSECTION[0].defconf="$CONFIG"
|
||||
[ -z "$(uci changes $CONFIG_NAME)" ] || uci commit $CONFIG_NAME
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user