mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
procd: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
4cfa63edc0
commit
f079db3844
@ -528,10 +528,10 @@ uci_validate_section()
|
|||||||
local _result
|
local _result
|
||||||
local _error
|
local _error
|
||||||
shift; shift; shift
|
shift; shift; shift
|
||||||
_result=`/sbin/validate_data "$_package" "$_type" "$_name" "$@" 2> /dev/null`
|
_result=$(/sbin/validate_data "$_package" "$_type" "$_name" "$@" 2> /dev/null)
|
||||||
_error=$?
|
_error=$?
|
||||||
eval "$_result"
|
eval "$_result"
|
||||||
[ "$_error" = "0" ] || `/sbin/validate_data "$_package" "$_type" "$_name" "$@" 1> /dev/null`
|
[ "$_error" = "0" ] || $(/sbin/validate_data "$_package" "$_type" "$_name" "$@" 1> /dev/null)
|
||||||
return $_error
|
return $_error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ for config in /etc/config/*; do
|
|||||||
done
|
done
|
||||||
MD5FILE=/var/run/config.md5
|
MD5FILE=/var/run/config.md5
|
||||||
[ -f $MD5FILE ] && {
|
[ -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)\" }}"
|
ubus call service event "{ \"type\": \"config.change\", \"data\": { \"package\": \"$(basename $c)\" }}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user