mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37248 3c298f89-4303-0410-b956-a3cf2f4a3e73
9 lines
279 B
Bash
9 lines
279 B
Bash
#!/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
|