mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-20 07:31:15 +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>
(cherry picked from commit aaa2d9f1e5)
This commit is contained in:
parent
3091dbcb45
commit
130466783a
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