net/mwan3: on startup mark interface online only if track_ip are reachable
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 24 Jul 2017 08:59:50 +0000 (10:59 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 10 Aug 2017 09:30:47 +0000 (11:30 +0200)
commit815e83d46178f7f57044d0a6a8efb292d9106c93
tree3888bf62c4961c728fd7310ea0f227283c7dd0a0
parent6d99b602fd3425df7b9a3f8d583a2092bb5e1b94
net/mwan3: on startup mark interface online only if track_ip are reachable

Add new interface config option "inital_state".

If interface comeing up the first time(mwan3 start, boot),
there are now two option for interface behaviour:

- online (default as is now)
  Set up interface regardless wether tracking ip are reachable or not.

- offline
  Set up interface first to ping tracking ip and if they are reachable set up
  the interface completely.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/etc/hotplug.d/iface/15-mwan3
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/sbin/mwan3track