mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 06:38:27 +02:00
swconfig: fix vlan/port configs being applied to all switches
Check devn instead of dev (which will never be null at this point). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28362 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9bafc99bba
commit
b7d3d9d3ce
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=swconfig
|
PKG_NAME:=swconfig
|
||||||
PKG_RELEASE:=9
|
PKG_RELEASE:=10
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
@ -183,7 +183,7 @@ found:
|
|||||||
port = o->v.string;
|
port = o->v.string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!dev || !port || !port[0])
|
if (!devn || !port || !port[0])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
port_n = strtoul(port, &port_err, 0);
|
port_n = strtoul(port, &port_err, 0);
|
||||||
@ -208,7 +208,7 @@ found:
|
|||||||
vlan = o->v.string;
|
vlan = o->v.string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!dev || !vlan || !vlan[0])
|
if (!devn || !vlan || !vlan[0])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
vlan_n = strtoul(vlan, &vlan_err, 0);
|
vlan_n = strtoul(vlan, &vlan_err, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user