mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
9 lines
279 B
Plaintext
9 lines
279 B
Plaintext
|
#!/bin/sh
|
||
|
MD5FILE=/var/run/config.md5
|
||
|
[ -f $MD5FILE ] && {
|
||
|
for c in `md5sum -c $MD5FILE 2>/dev/null| grep FAILED | cut -d: -f1`; do
|
||
|
ubus call service event "{ \"type\": \"config.change\", \"data\": { \"package\": \"$(basename $c)\" }}"
|
||
|
done
|
||
|
}
|
||
|
md5sum /etc/config/* > $MD5FILE
|