aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files/reload_config
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-10 16:47:53 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-13 19:01:23 +0200
commitf079db38449609e2f330f1e4fd391c325bb47cdf (patch)
treec50f6a73e8cd7857c9872bdd60e457dcd2791a43 /package/system/procd/files/reload_config
parent4cfa63edc075cf435499e9944ce116081fd92ab3 (diff)
downloadupstream-f079db38449609e2f330f1e4fd391c325bb47cdf.tar.gz
upstream-f079db38449609e2f330f1e4fd391c325bb47cdf.tar.bz2
upstream-f079db38449609e2f330f1e4fd391c325bb47cdf.zip
procd: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/system/procd/files/reload_config')
-rw-r--r--package/system/procd/files/reload_config2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/procd/files/reload_config b/package/system/procd/files/reload_config
index 8d1cdb1378..3ae0de96a3 100644
--- a/package/system/procd/files/reload_config
+++ b/package/system/procd/files/reload_config
@@ -7,7 +7,7 @@ for config in /etc/config/*; do
done
MD5FILE=/var/run/config.md5
[ -f $MD5FILE ] && {
- for c in `md5sum -c $MD5FILE 2>/dev/null| grep FAILED | cut -d: -f1`; do
+ 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
}