This replaces deprecated backticks by more versatile $(...) syntax.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
[ -n "$match" ] && {
set -- $match
shift
- for cur in `seq 1 $NPROCS`; do
+ for cur in $(seq 1 $NPROCS); do
[ "$1" -gt 0 ] && {
cpu=$(($cur - 1))
break
find_config() {
local device="$1"
local ifdev ifl3dev ifobj
- for ifobj in `ubus list network.interface.\*`; do
+ for ifobj in $(ubus list network.interface.\*); do
interface="${ifobj##network.interface.}"
(
json_load "$(ifstatus $interface)"
[ "$modes" = "down up" ] && ubus call network reload
if [ -n "$ifup_all" ]; then
- for interface in `ubus -S list 'network.interface.*'`; do
+ for interface in $(ubus -S list 'network.interface.*'); do
if_call "${interface##network.interface.}"
done
[ -n "$setup_wifi" ] && /sbin/wifi up