mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-13 09:09:58 +01:00
procd: reload_config: support UCI overlay directory
Check /var/run/uci/ before /etc/config/ so that overlay configs also trigger service reload events. The overlay directory takes precedence, and uci show already handles merging overlay + base configuration correctly. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
e9d6025725
commit
aaa2d9f1e5
1 changed files with 4 additions and 2 deletions
|
|
@ -1,9 +1,11 @@
|
|||
#!/bin/sh
|
||||
rm -rf /var/run/config.check
|
||||
mkdir -p /var/run/config.check
|
||||
for config in /etc/config/*; do
|
||||
for config in /var/run/uci/* /etc/config/*; do
|
||||
[ -f "$config" ] || continue
|
||||
file=${config##*/}
|
||||
uci show "${file##*/}" > /var/run/config.check/$file
|
||||
[ -f "/var/run/config.check/$file" ] && continue
|
||||
uci show "$file" > /var/run/config.check/$file 2>/dev/null
|
||||
done
|
||||
MD5FILE=/var/run/config.md5
|
||||
[ -f $MD5FILE ] && {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue