OSMC network start scripts

I would like to completely clean the osmc of any network activity at start. I know it uses connman, but disabling connman through systemctl is not enough. Which scripts control network configurations at start? Thanks you

I have been struggling to get vpn support to work. After discovering connman’s sparse documentation, I switched to network manager. Unistalling osmc’s network package also removes the rbp2 device package, but unistall is the only way to stop connman from starting that I know of.

What about

sudo systemctl disable connman.sevice

?

If that still doesn’t work (it might get started on demand via dbus name) then you can mask the service:

That will definitely, 100% disable it. You do not want to uninstall the package as this will try to uninstall the device package which will cause you a world of hurt next time you run updates…

I have tried that. A script must be starting connman I assume. There should be just a couple network scripts that I don’t know of to stop osmc’s network functions. Thanks for the input, I will look into the info you provided

Try:

sudo ln -s /dev/null /etc/systemd/system/connman.service
sudo systemctl daemon-reload

There won’t be a script starting connman as such, it will be dbus activation, most likely when the OSMC networking addon loads in the background.

BTW, what were the original issues you were having with VPN that prompted you to disable connman ?

I’m guessing the lack of ifup.d script support makes it difficult to add the firewall and routing rules that are necessary ?

We’re looking at adding ifup.d support to connman fairly soon to address this issue.

Thanks! connman service is no longer starting at boot. Is there any other network services that could conflict with network manager, I know you guys dont actually support it, would appreciate the info.

In regards to the connman problems, I am not too advanced of a linux user. I rely on decent documentation, and I have been having a difficult time finding it for connman. I got a working vpn config to show up in my connmanctl services, but couldnt get it to start.