1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00
openmptcprouter-vps/omr-service
Ycarus (Yannick Chabanois) 4285efb8c7 Fixes
2020-03-10 10:45:06 +01:00

19 lines
311 B
Bash
Executable file

#!/bin/bash
# OpenMPTCProuter VPS service script
_multipath() {
# Force multipath status
source /etc/shorewall/params.net
for intf in `ls -1 /sys/class/net`; do
if [ "$intf" = "$NET_IFACE" ]; then
multipath $intf on
else
multipath $intf off
fi
done
}
while true; do
_multipath
sleep 10
done