Developing lightweight computation at the DSG edge

Commit a4787d48 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

Add TL-WR841N network hook

parent 561ca717
......@@ -35,19 +35,19 @@ uci set network.@switch[0].reset=1
uci set network.@switch[0].enable_vlan=1
uci set network.@switch_vlan[0]=switch_vlan
uci set network.@switch_vlan[0].device=eth0
uci set network.@switch_vlan[0].vlan=1
uci set network.@switch_vlan[0].vid=1
uci set network.@switch_vlan[0].vlan=2
uci set network.@switch_vlan[0].vid=2
uci set network.@switch_vlan[0].ports="0t 2 3 4"
uci set network.@switch_vlan[1]=switch_vlan
uci set network.@switch_vlan[1].device=eth0
uci set network.@switch_vlan[1].vlan=2
uci set network.@switch_vlan[1].vlan=3
uci set network.@switch_vlan[1].vid=3
uci set network.@switch_vlan[1].ports="0t 1"
uci set network.@switch_vlan[1].vid=2
uci set network.@switch_vlan[2]=switch_vlan
uci set network.@switch_vlan[2].device=eth0
uci set network.@switch_vlan[2].vlan=3
uci set network.@switch_vlan[2].ports="0t 5t"
uci set network.@switch_vlan[2].vlan=12
uci set network.@switch_vlan[2].vid=12
uci set network.@switch_vlan[2].ports="0t 5t"
uci commit network
......@@ -19,9 +19,9 @@ done
[ $iseth -eq 0 ] && {
echo "Device eth0 not configured, doing it..."
uci set qmp.interfaces.lan_devices="eth0.1"
uci set qmp.interfaces.lan_devices="eth0.2"
uci set qmp.interfaces.mesh_devices="eth0.12"
uci set qmp.interfaces.wan_devices="eth0.2"
uci set qmp.interfaces.wan_devices="eth0.3"
uci set qmp.interfaces.no_vlan_devices="eth0.12"
uci set qmp.interfaces.ignore_devices="eth0"
uci commit qmp
......@@ -32,4 +32,3 @@ uci set network.@switch_vlan[0].ports="0 1 2 3 4"
uci commit network
......@@ -4,7 +4,7 @@ STAGE="$1"
[ "$STAGE" == "firstboot" ] && {
echo "Configuring TP-Link TL-WR-series device networking"
echo "Configuring TPlink WDR switch networking"
devs="$(uci get qmp.interfaces.lan_devices) \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment