blob: ef8ab87e0cc2d91fd65b2e9ff3dc9ee96225ce7e (
plain)
1
2
3
4
5
6
7
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
|