diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-10 12:53:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-10 12:53:30 +0000 |
commit | 501e06e91702852ccd1a566141967afc815f006f (patch) | |
tree | c15eb11072a5a4034cc89cb2bb882d908a98553b /package | |
parent | 68bcc6973bca0165982959cc89862ffcc63ef569 (diff) | |
download | master-187ad058-501e06e91702852ccd1a566141967afc815f006f.tar.gz master-187ad058-501e06e91702852ccd1a566141967afc815f006f.tar.bz2 master-187ad058-501e06e91702852ccd1a566141967afc815f006f.zip |
netifd: ifup-shellscript - fix wrong usage of 'local'
this error was not visible until recent bump to
busybox 1.24.1 stable which introduced a warning message
when keyword 'local' is not used with a shell-function.
this does not change behavior and is a cosmetic cleanup.
fixes the following output:
root@box:~ ifup <interface>
/sbin/ifup: local: line 362: not in a function
/sbin/ifup: local: line 362: not in a function
/sbin/ifup: local: line 1: not in a function
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47828 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/network/config/netifd/files/sbin/ifup | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/package/network/config/netifd/files/sbin/ifup b/package/network/config/netifd/files/sbin/ifup index af3aaa8453..5515b91f76 100755 --- a/package/network/config/netifd/files/sbin/ifup +++ b/package/network/config/netifd/files/sbin/ifup @@ -67,12 +67,10 @@ if [ -n "$setup_wifi" ] && grep -sq config /etc/config/wireless; then fi } - local radio_devs - local network="$1" + network="$1" config_load wireless config_foreach find_related_radios wifi-iface - local dev for dev in $(echo "$radio_devs" | sort -u); do /sbin/wifi up "$dev" done |