netifd: replace backticks by $(...)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 10 May 2020 14:47:49 +0000 (16:47 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 13 May 2020 17:01:23 +0000 (19:01 +0200)
This replaces deprecated backticks by more versatile $(...) syntax.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering
package/network/config/netifd/files/lib/network/config.sh
package/network/config/netifd/files/sbin/ifup

index 9d7aaae0ac4f0ae56faf953311c41f0100526bd0..ce5e76096aa24f1aaeb9f13dd83d23ef17bbfc1e 100644 (file)
@@ -14,7 +14,7 @@ find_irq_cpu() {
        [ -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
index 2a1aa65fe0a564243eade13230ec913d19ac58dc..4cd28e4ce1de50d8369fc50d7bdc9873aa3e6d23 100755 (executable)
@@ -6,7 +6,7 @@
 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)"
index 5515b91f76df2b5c36d46ac4b86dfc9bdcd78b1d..15be535bbfc9eee8ffdbabd283b7c41e4e01c2f2 100755 (executable)
@@ -37,7 +37,7 @@ done
 
 [ "$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