Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
a4787d48
Commit
a4787d48
authored
Mar 25, 2014
by
Roger Pueyo Centelles
Browse files
Add TL-WR841N network hook
parent
561ca717
Changes
4
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/hooks/scripts/switch_wdr.sh
View file @
a4787d48
...
@@ -35,19 +35,19 @@ uci set network.@switch[0].reset=1
...
@@ -35,19 +35,19 @@ uci set network.@switch[0].reset=1
uci
set
network.@switch[0].enable_vlan
=
1
uci
set
network.@switch[0].enable_vlan
=
1
uci
set
network.@switch_vlan[0]
=
switch_vlan
uci
set
network.@switch_vlan[0]
=
switch_vlan
uci
set
network.@switch_vlan[0].device
=
eth0
uci
set
network.@switch_vlan[0].device
=
eth0
uci
set
network.@switch_vlan[0].vlan
=
1
uci
set
network.@switch_vlan[0].vlan
=
2
uci
set
network.@switch_vlan[0].vid
=
1
uci
set
network.@switch_vlan[0].vid
=
2
uci
set
network.@switch_vlan[0].ports
=
"0t 2 3 4"
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]
=
switch_vlan
uci
set
network.@switch_vlan[1].device
=
eth0
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].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]
=
switch_vlan
uci
set
network.@switch_vlan[2].device
=
eth0
uci
set
network.@switch_vlan[2].device
=
eth0
uci
set
network.@switch_vlan[2].vlan
=
3
uci
set
network.@switch_vlan[2].vlan
=
12
uci
set
network.@switch_vlan[2].ports
=
"0t 5t"
uci
set
network.@switch_vlan[2].vid
=
12
uci
set
network.@switch_vlan[2].vid
=
12
uci
set
network.@switch_vlan[2].ports
=
"0t 5t"
uci commit network
uci commit network
}
}
packages/qmp-system/files/etc/qmp/hooks/scripts/switch_wdr_network.sh
View file @
a4787d48
...
@@ -19,9 +19,9 @@ done
...
@@ -19,9 +19,9 @@ done
[
$iseth
-eq
0
]
&&
{
[
$iseth
-eq
0
]
&&
{
echo
"Device eth0 not configured, doing it..."
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.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.no_vlan_devices
=
"eth0.12"
uci
set
qmp.interfaces.ignore_devices
=
"eth0"
uci
set
qmp.interfaces.ignore_devices
=
"eth0"
uci commit qmp
uci commit qmp
...
...
packages/qmp-system/files/etc/qmp/hooks/scripts/switch_wr.sh
View file @
a4787d48
...
@@ -32,4 +32,3 @@ uci set network.@switch_vlan[0].ports="0 1 2 3 4"
...
@@ -32,4 +32,3 @@ uci set network.@switch_vlan[0].ports="0 1 2 3 4"
uci commit network
uci commit network
}
}
packages/qmp-system/files/etc/qmp/hooks/scripts/switch_wr_network.sh
View file @
a4787d48
...
@@ -4,7 +4,7 @@ STAGE="$1"
...
@@ -4,7 +4,7 @@ STAGE="$1"
[
"
$STAGE
"
==
"firstboot"
]
&&
{
[
"
$STAGE
"
==
"firstboot"
]
&&
{
echo
"Configuring TP
-L
ink
TL-WR-series device
networking"
echo
"Configuring TP
l
ink
WDR switch
networking"
iseth
=
0
iseth
=
0
devs
=
"
$(
uci get qmp.interfaces.lan_devices
)
\
devs
=
"
$(
uci get qmp.interfaces.lan_devices
)
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment