summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-10 12:53:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-10 12:53:30 +0000
commit6fb259b6dfa2b542a22bebcaf4230743266dcc50 (patch)
tree2f8dafacded2027d2965940e41758264f1b41ec0
parentb106a8f2553245836d901b9e92b923381575583a (diff)
downloadmtk-20170518-6fb259b6dfa2b542a22bebcaf4230743266dcc50.zip
mtk-20170518-6fb259b6dfa2b542a22bebcaf4230743266dcc50.tar.gz
mtk-20170518-6fb259b6dfa2b542a22bebcaf4230743266dcc50.tar.bz2
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> SVN-Revision: 47828
-rwxr-xr-xpackage/network/config/netifd/files/sbin/ifup4
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 af3aaa8..5515b91 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