Author: nbd
Date: 2015-12-10 13:53:30 +0100 (Thu, 10 Dec 2015)
New Revision: 47828

Modified:
   trunk/package/network/config/netifd/files/sbin/ifup
Log:
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 <[email protected]>

Modified: trunk/package/network/config/netifd/files/sbin/ifup
===================================================================
--- trunk/package/network/config/netifd/files/sbin/ifup 2015-12-10 12:40:55 UTC 
(rev 47827)
+++ trunk/package/network/config/netifd/files/sbin/ifup 2015-12-10 12:53:30 UTC 
(rev 47828)
@@ -67,12 +67,10 @@
                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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to