In my RPi boxes not serving as media center boxes I have used /etc/wpa_supplicant/wpa_supplicant.conf to predefine the WiFi networks it can connect to.
This makes it easy to move the RPi unit between my sites and just power on to get connected.
Typically this file contains the following:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=SE
network={
ssid="bosse4g"
psk="password"
key_mgmt=WPA-PSK
disabled=0
}
network={
ssid="bossefiber"
psk="password"
key_mgmt=WPA-PSK
disabled=0
}
Is this possible also with OSMC (I have noted that the file does not exist on my new RPi3B+ OSMC installation, which only contains this.
ls -l /etc/wpa_supplicant/
totalt 40
-rwxr-xr-x 1 root root 937 apr 10 18:57 action_wpa.sh
-rwxr-xr-x 1 root root 25619 apr 10 18:57 functions.sh
-rwxr-xr-x 1 root root 4696 apr 10 18:57 ifupdown.sh
Would be nice not to have to fiddle with the WiFi connectivity every time.