Problem statement
Running multiple connection managers at the same time can lead to unwanted and unexpected behaviour. It is obvious when there is more than one trying to manage the same network interface. But even if they are controlling different network interfaces, you can still run into problems, due to:
- Writing directly to a shared ressource like /etc/resolv.conf (without a gatekeeper as e.g. resolvconf)
- Running multipe instances of services like wpa_supplicant.
Affected packages: connman, network-manager, wicd. Try to detect such situations and let the user chose which option he wants to enable.
Proposal
- Shared debconf template
in postinst, show debconf prompt if >1 connection managers are found
- Detection if service is installed and/or active/enabled:
test -f /usr/sbin/<daemon>, where daemon=NetworkManager|connman|wicd
test -f /etc/rc2.d/S??<service>, where service=network-manager|connman|wicd
- test if D-Bus name is taken