Hi, I want to manage wifi dongle by using /etc/network/interface or any other methods.
Is this possible in osmc?
Yes,
You would need to edit ConnMan’s /usr/bin/start-network (I don’t think this is a conffile, so it could change across updates), to ignore wlan0 (-I wlan0).
Then you can use /etc/network/interfaces and wpa-supplicant. Old school style.
Sam
Hi sam,
I had edited /usr/bin/start-network and put ‘-I wlan0’ in two lines as bellow:
‘exec /usr/sbin/connmand -n -I wlan0 --nodnsproxy --config=/etc/connman.conf’
‘exec /usr/sbin/connmand -n -I wlan0 --config=/etc/connman.conf’
But the wifi dongle isn’t up…
Is there something wrong with my setting?
My ‘/etc/network/interfaces’ is list as bellow:
auto wlan0
allow-hotplug wlan0
address 10.1.0.1
netmask 255.255.255.0
Hi
I think you need to configure SSID and (if you have one, a key) in /etc/network/interfaces for it to automatically come up. These commands may give you insight:
sudo journalctl
and sudo ifup wlan0
Why are you doing this? OSMC’s ConnMan implementation should suffice for most usecases.
Sam
I want to run hostapd in osmc, but the wifi dongle doesn’t support nl80211.
Thanks for your advice.