1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Restart network after bonding-omrvpn creation

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-12-18 15:48:03 +01:00
parent a486708f2b
commit 4eed3d2a2c

View file

@ -78,8 +78,13 @@ start_service()
set network.omrvpn.use_carrier='1'
set network.omrvpn.mtu='1440'
set network.omrvpn.ifname= 'bonding-omrvpn'
set network.omrvpn.force_link='1'
commit network
EOF
if [ "$(ip link show bonding-omrvpn)" = "" ]; then
/etc/init.d/network restart
sleep 10
fi
config_load openmptcprouter
config_foreach _openvpnbonding interface
ip link set bonding-omrvpn up