meshwizard: remove local variable definitions outside functions
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / setup_lan_ipv6.sh
index 2f6144b..1b4f9b1 100755 (executable)
@@ -7,10 +7,10 @@
 
 # Setup IPv6 for the lan interface
 
 
 # Setup IPv6 for the lan interface
 
-local ip6addr=""
+ip6addr=""
 if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then
        # get lan mac
 if [ "$ipv6_config" = "auto-ipv6-dhcpv6" ]; then
        # get lan mac
-       local device="$(uci -p/var/state -q get network.lan.ifname)"
+       device="$(uci -p/var/state -q get network.lan.ifname)"
        if [ -n "device" ]; then
                ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $device)"
        fi
        if [ -n "device" ]; then
                ip6addr="$($dir/helpers/gen_auto-ipv6-dhcpv6-ip.sh $device)"
        fi