1
I have a device that has both ethernet and wifi adapters. I'm trying to use connman
to manage my connections. I'd like it to connect to ethernet when it's available and fallback to wifi if there's no ethernet connection.
Here's my /etc/connman/main.conf:
[General]
PreferredTechnologies=ethernet,wifi
SingleConnectedTechnology=true
What does work:
- if I have the ethernet connected when the device turns on it properly establishes a connection
- if I use
connmanctl
to manually connect to the wifi it will properly switch off the ethernet connection and switch over to the wifi connection
What does not work:
- if the device is started up with no ethernet cable then wifi is not established
- if the device was started up and connected to the ethernet then disconnecting the cable does not cause the wifi to connect
- if the device is started up and then the ethernet cable is connected later, it does not connect to the ethernet automatically
I'm using connman 1.15
EDIT:
/sys/class/net/eth0/carrier
doesn't seem to detect the change in cable connectionip monitor
does seem to be able to detect when the cable is connected or disconnected