Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37248master
parent
67eb275f69
commit
8eb56a88a4
@ -0,0 +1,8 @@ |
|||||||
|
#!/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 |
Loading…
Reference in new issue