projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ef8ab87e0cc2d91fd65b2e9ff3dc9ee96225ce7e
[librecmc/librecmc.git]
/
package
/
system
/
procd
/
files
/
reload_config
1
#!/bin/sh
2
MD5FILE=/var/run/config.md5
3
[ -f $MD5FILE ] && {
4
for c in `md5sum -c $MD5FILE 2>/dev/null| grep FAILED | cut -d: -f1`; do
5
ubus call service event "{ \"type\": \"config.change\", \"data\": { \"package\": \"$(basename $c)\" }}"
6
done
7
}
8
md5sum /etc/config/* > $MD5FILE