mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-26 16:43:01 +00:00
netifd: 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
05afbcd14e
commit
ffa3a8e9b0
@ -14,7 +14,7 @@ find_irq_cpu() {
|
|||||||
[ -n "$match" ] && {
|
[ -n "$match" ] && {
|
||||||
set -- $match
|
set -- $match
|
||||||
shift
|
shift
|
||||||
for cur in `seq 1 $NPROCS`; do
|
for cur in $(seq 1 $NPROCS); do
|
||||||
[ "$1" -gt 0 ] && {
|
[ "$1" -gt 0 ] && {
|
||||||
cpu=$(($cur - 1))
|
cpu=$(($cur - 1))
|
||||||
break
|
break
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
find_config() {
|
find_config() {
|
||||||
local device="$1"
|
local device="$1"
|
||||||
local ifdev ifl3dev ifobj
|
local ifdev ifl3dev ifobj
|
||||||
for ifobj in `ubus list network.interface.\*`; do
|
for ifobj in $(ubus list network.interface.\*); do
|
||||||
interface="${ifobj##network.interface.}"
|
interface="${ifobj##network.interface.}"
|
||||||
(
|
(
|
||||||
json_load "$(ifstatus $interface)"
|
json_load "$(ifstatus $interface)"
|
||||||
|
@ -37,7 +37,7 @@ done
|
|||||||
|
|
||||||
[ "$modes" = "down up" ] && ubus call network reload
|
[ "$modes" = "down up" ] && ubus call network reload
|
||||||
if [ -n "$ifup_all" ]; then
|
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.}"
|
if_call "${interface##network.interface.}"
|
||||||
done
|
done
|
||||||
[ -n "$setup_wifi" ] && /sbin/wifi up
|
[ -n "$setup_wifi" ] && /sbin/wifi up
|
||||||
|
Loading…
Reference in New Issue
Block a user