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
51446b97
Commit
51446b97
authored
Jun 17, 2013
by
p4u
Browse files
Change default tunDev name from 'D' to 'tmain'
parent
40a24bee
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_functions.sh
View file @
51446b97
...
...
@@ -1059,9 +1059,9 @@ qmp_configure_bmx6() {
local
bmx6_ipv4_address
=
"
$(
echo
$(
uci get qmp.networks.bmx6_ipv4_address
)
|
cut
-d
/
-f1
)
"
[
-z
"
$bmx6_ipv4_netmask
"
]
&&
bmx6_ipv4_netmask
=
"32"
uci
set
$conf
.general.tun4Address
=
"
$bmx6_ipv4_address
/
$bmx6_ipv4_netmask
"
uci
set
$conf
.
D
=
tunDev
uci
set
$conf
.
D
.tunDev
=
D
uci
set
$conf
.
D
.tun4Address
=
"
$bmx6_ipv4_address
/
$bmx6_ipv4_netmask
"
uci
set
$conf
.
tmain
=
tunDev
uci
set
$conf
.
tmain
.tunDev
=
tmain
uci
set
$conf
.
tmain
.tun4Address
=
"
$bmx6_ipv4_address
/
$bmx6_ipv4_netmask
"
else
local
ipv4_suffix24
=
"
$((
0
x
$community_node_id
%
0
x100
))
"
...
...
@@ -1070,9 +1070,9 @@ qmp_configure_bmx6() {
ipv4_prefix24
=
"
${
ipv4_prefix24
}
.0"
fi
uci
set
$conf
.general.tun4Address
=
"
$ipv4_prefix24
.
$ipv4_suffix24
/32"
uci
set
$conf
.
D
=
tunDev
uci
set
$conf
.
D
.tunDev
=
D
uci
set
$conf
.
D
.tun4Address
=
"
$ipv4_prefix24
.
$ipv4_suffix24
/32"
uci
set
$conf
.
tmain
=
tunDev
uci
set
$conf
.
tmain
.tunDev
=
tmain
uci
set
$conf
.
tmain
.tun4Address
=
"
$ipv4_prefix24
.
$ipv4_suffix24
/32"
fi
...
...
@@ -1086,9 +1086,9 @@ qmp_configure_bmx6() {
if
qmp_uci_test qmp.networks.bmx6_ripe_prefix48
;
then
uci
set
$conf
.general.tun6Address
=
"
$(
uci get qmp.networks.bmx6_ripe_prefix48
)
:
$community_node_id
:0:0:0:1/64"
uci
set
$conf
.
D
=
tunDev
uci
set
$conf
.
D
.tunDev
=
D
uci
set
$conf
.
D
.tun6Address
=
"
$(
uci
get
qmp.
networks.bmx6_ripe_prefix48
)
:
$community_node_id
:0:0:0:1/64"
uci
set
$conf
.
tmain
=
tunDev
uci
set
$conf
.
tmain
.tunDev
=
tmain
uci
set
$conf
.
tmain
.tun6Address
=
"
$(
qmp_
uci
_
get networks.bmx6_ripe_prefix48
)
:
$community_node_id
:0:0:0:1/64"
fi
qmp_configure_bmx6_gateways
...
...
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