aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-10 16:47:49 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-05-13 19:01:23 +0200
commitffa3a8e9b0fad746a50faf3c2a11b4e92b3d7092 (patch)
tree5c83086d9eb35cc05394ae98e5db4589e12020dd /package
parent05afbcd14e1ea9fd25454c1c2fcc0ead4e46af53 (diff)
downloadupstream-ffa3a8e9b0fad746a50faf3c2a11b4e92b3d7092.tar.gz
upstream-ffa3a8e9b0fad746a50faf3c2a11b4e92b3d7092.tar.bz2
upstream-ffa3a8e9b0fad746a50faf3c2a11b4e92b3d7092.zip
netifd: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package')
-rw-r--r--package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering2
-rwxr-xr-xpackage/network/config/netifd/files/lib/network/config.sh2
-rwxr-xr-xpackage/network/config/netifd/files/sbin/ifup2
3 files changed, 3 insertions, 3 deletions
diff --git a/package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering b/package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering
index 9d7aaae0ac..ce5e76096a 100644
--- a/package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering
+++ b/package/network/config/netifd/files/etc/hotplug.d/net/20-smp-packet-steering
@@ -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
diff --git a/package/network/config/netifd/files/lib/network/config.sh b/package/network/config/netifd/files/lib/network/config.sh
index 2a1aa65fe0..4cd28e4ce1 100755
--- a/package/network/config/netifd/files/lib/network/config.sh
+++ b/package/network/config/netifd/files/lib/network/config.sh
@@ -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)"
diff --git a/package/network/config/netifd/files/sbin/ifup b/package/network/config/netifd/files/sbin/ifup
index 5515b91f76..15be535bbf 100755
--- a/package/network/config/netifd/files/sbin/ifup
+++ b/package/network/config/netifd/files/sbin/ifup
@@ -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