mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Add 6in4 support
This commit is contained in:
parent
72f995d069
commit
babc9f4aed
2 changed files with 19 additions and 1 deletions
|
@ -39,7 +39,7 @@ MY_DEPENDS := \
|
||||||
luci-app-vnstat omr-quota luci-app-omr-quota \
|
luci-app-vnstat omr-quota luci-app-omr-quota \
|
||||||
luci-app-mptcp luci-app-openmptcprouter luci-app-omr-bypass \
|
luci-app-mptcp luci-app-openmptcprouter luci-app-omr-bypass \
|
||||||
speedtestc \
|
speedtestc \
|
||||||
ip6tables-mod-nat luci-proto-ipv6 ethtool \
|
ip6tables-mod-nat luci-proto-ipv6 6to4 6in4 6rd ethtool \
|
||||||
kmod-rtl8xxxu kmod-rtl8192cu kmod-net-rtl8192su comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch uqmi adb-enablemodem umbim kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan kmod-usb-net-cdc-mbim
|
kmod-rtl8xxxu kmod-rtl8192cu kmod-net-rtl8192su comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch uqmi adb-enablemodem umbim kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan kmod-usb-net-cdc-mbim
|
||||||
|
|
||||||
OMR_SUPPORTED_LANGS := ca zh_cn en fr de el he hu it ja ms no pl pt_br pt ro ru es sv uk vi
|
OMR_SUPPORTED_LANGS := ca zh_cn en fr de el he hu it ja ms no pl pt_br pt ro ru es sv uk vi
|
||||||
|
|
18
openmptcprouter/files/etc/uci-defaults/2010-omr-6in4
Executable file
18
openmptcprouter/files/etc/uci-defaults/2010-omr-6in4
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
if [ "$(uci -q show network | grep omr6in4)" = "" ]; then
|
||||||
|
uci -q batch <<-EOF
|
||||||
|
set network.omr6in4=interface
|
||||||
|
set network.omr6in4.proto=6in4
|
||||||
|
set network.omr6in4.ip4table=vpn
|
||||||
|
set network.omr6in4.multipath=off
|
||||||
|
set network.omr6in4.ipaddr=10.0.0.2
|
||||||
|
set network.omr6in4.peeraddr=10.0.0.1
|
||||||
|
set network.omr6in4.gateway=fe80::a00:1
|
||||||
|
commit network
|
||||||
|
EOF
|
||||||
|
rm -f /tmp/luci-indexcache
|
||||||
|
fi
|
||||||
|
exit 0
|
Loading…
Reference in a new issue