Hotplug with two or more wan0, wan1, wan2 etc

I have 3 device for feeding net to my Router WNDR4700 they are
(a) WAN (wan, wan6) (when it goes it goes down it will be like for month ++)
(b) USB-RNDIS-4G-Router (RNDIS, RNDIS6)
(c) My-Android-Phone (I use it occasionally when (a) and (b) are down or slow )
Note: both (b) and (c) are usb devices but named internally as eth1 and usb0 respectively.

So between (b) and (c), I want to write whenever I connect My-Android-Phone the (b) should be disable and connect when I disconnect My-Android-Phone

(c) My-Android-Phone has following output at $dmesg | tail -3

$dmesg
[ 105.568133] usb 2-1: USB disconnect, device number 3
[ 105.858105] usb 2-1: new high-speed USB device number 4 using xhci_hcd
[ 105.990166] rndis_host 2-1:1.0 usb0: register 'rndis_host' at usb-0000:45:00.0-1, RNDIS device, 0Z:Z0:CC:XX:RR:73

I have replace MAC in last line for privacy

can I get Documentation of LEDE-( hotpulg / hotpulg2 / udev / procd )

The "hotplug2" daemon has been removed in r36987 and replaced with procd. The documented example scripts still apply. (source https://wiki.openwrt.org/doc/techref/hotplug )

What I understand is hotplug-----replaced_with---->hotplug2-----replaced_with---->procd

But how to handle this procd is unclear?
I m looking for LEDE not OpenWrt

It sounds like a multiwan configuration.
You might look at the mwan3 package (and luci-app-mwan3).

Docs can be found from Openwrt wiki: https://wiki.openwrt.org/doc/howto/mwan3

There is one more related question
I have 2 interface
wan2
usb0
if usb0 is inserted then turnoff wan
else
turnoff wan

Can any on help me how to do this

LEDE was cool name why you guys merged it with openwrt

Where were you a month ago, We needed one more vote and the name would of stayed at Lede now it's too late

3 Likes

I don't know where to vote.

This is my question