aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2016-09-24 14:30:24 +0200
committerJo-Philipp Wich <jo@mein.io>2016-09-24 14:38:20 +0200
commit1c09849f6cf1b8bd94819ca11910ce444c3d3019 (patch)
tree5ceeb7ebf279d8208045f7ba83264bbed0e45115 /target/linux/ar71xx/base-files
parentdf9efc94970ccc1e43915839ec3f49d54729cc3d (diff)
downloadupstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.tar.gz
upstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.tar.bz2
upstream-1c09849f6cf1b8bd94819ca11910ce444c3d3019.zip
treewide: remove bad local shell variable declarations
Local variable declarations outside of functions are illegal since the Busybox update to v1.25.0, therfore remove them from the appropriate places. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rw-r--r--target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration
index bea9493c8e..259d240610 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration
@@ -3,8 +3,8 @@
# Copyright (C) 2010 OpenWrt.org
#
-local dev="$(uci -q get network.@switch_vlan[0].device)"
-local vlan="$(uci -q get network.@switch_vlan[0].vlan)"
+dev="$(uci -q get network.@switch_vlan[0].device)"
+vlan="$(uci -q get network.@switch_vlan[0].vlan)"
if [ "$dev" = "rtl8366s" ] && [ "$vlan" = 0 ]; then
logger -t vlan-migration "VLAN 0 is invalid for RTL8366s, changing to 1"