My recent emerge installed openrc and I found myself in a problem with setting up wireless network.
Basically I use environment variable to specify the SSID as there are more available around
and one of them requires parameters not supported by gnome-network-manager.
So far everything worked using simple alias:
Code: Select all
alias wifionh='sudo SSID=RequiredSSID /etc/init.d/net.wlan0 start'
Code: Select all
Defaults env_keep += "SSID"
Code: Select all
if [[ ${IFACE} = "wlan0" ]]; then
[[ ${IN_BACKGROUND} = "true" ]] && return 0
if [[ -z ${USER} ]] && grep -qv wifi /proc/cmdline ; then
ewarn "Wifi not requested in command line"
return 1
fi
WPA=/etc/wpa_supplicant
if [[ -z ${SSID} ]]; then
einfo "Default - all SSIDS"
cat $WPA/wpa_conf.* > $WPA/wpa_supplicant.conf || return 1
else
einfo "Request only $SSID"
cp $WPA/wpa_conf.$SSID $WPA/wpa_supplicant.conf || return 1
fi
einfo "Loading WiFi driver module"
modprobe iwlagn || return 1
fiIs there any rc configuration option either to make it working again, or to have the wpa_supplicant config specified using another way while invoking the init script?
I can probably fix it using a /tmp file but wondering that there might be a more elegant solution or provision I just missed checking the openRC upgrade docs.
Thanks

