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:
parent
a486708f2b
commit
4eed3d2a2c
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue