On Saturday, 27 November 2021 17:54:57 AEDT Ben Nisenbaum via luv-main wrote:
> On Sat, Nov 27, 2021, at 4:19 PM, Russell Coker wrote:
> > On Saturday, 27 November 2021 00:39:04 AEDT Ben Nisenbaum via luv-main 
wrote:
> >> allow-hotplug wlan0
> >> 
> >>  iface wlan0 inet dhcp
> >>  
> >>     ssid Telstraxxx
> >>     psk xxxx
> > 
> > Have you tried adding the following line to the interfaces file:
> > pre-up rfkill unblock wifi
> 
> Thanks Russell. That's a handy config which had rfkill do the unblocking so
> I didn't have to run that command manually.
> 
> The system however didn't continue beyond that to bring up the wireless
> interface itself, so I still needed to run the other 2 commands.

There's nothing stopping you from putting the wpa_supplicant command in the 
pre-up as well.  You shouldn't need to do it, you should be able to have the 
interfaces file do it.

https://wiki.debian.org/WiFi/HowToUse#Using_ifupdown

The above documents how to do it.  But as always with Linux there are lots of 
ways of doing it (many of which are documented in the same web page) and you 
can even run a script from your own service file, an @reboot cron job, or 
whatever suits your taste.

> It's one step at a time. I guess I could write a script but I'm still at the
> point of concern about the system's reluctance to do what has been
> automatic on other systems running the same OS.

I have also had some trouble in the past, it's been a while so I can't 
remember the details (currently the only Linux wifi systems I'm using are 
laptops and it works from the graphical session).

There have been many cases where I've put things in pre-up because ifup didn't 
do what I wanted it to do.  Probably most of them were due to my mistakes, but 
it's no big deal, it's the result that counts.

> >> I can get the wifi up online with these commands:
> >> #rfkill unblock wifi
> >> #wpa_supplicant _B -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0
> >> #dhclient wlan0
> >> 
> >> rfkill seems to be the blocking factor.

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/

_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to