Okay, so here's a weird wireless problem. Now and then my wireless connection
totally disappears. Usually this happens right after some unlucky event, such
as a sudden power disruption; and that happens with annoying frequency not
only in my apartment building, but also in much of the city. (In April of
2017, the power went out in about one-third of the city, including where I
live; which event killed my old desktop computer. I swear, San Francisco is
like a third-world country when in comes to a lot of the basic amenities.)
When power is restored, and I boot up, my wireless connection is usually
missing. My trick for temporarily restoring it has been to boot up with a
Debian live disc, which recognizes my wireless connection, then to reboot
into my system, and there it is. But this tends to be a temporary fix, and
after a few more reboots, over maybe a couple weeks or a month, I end up
having to reinstall my system; and this is what I am trying to avoid.
I'm currently running Devuan Jessie, and my Debian live disc wasn't working to
fix the problem, so I tried booting up the Devuan net install CD, ran the
installer up to the point of configuring the network interfaces, then I
booted into rescue mode (in the Devuan net install CD), and tried restarting
networking, some ifup/ifdown commands, various iwconfig commands, but these
didn't seem to do much of anything. When I rebooted, my wireless connection
was back again, and now it seems to be running fine, but I fear that this is
still just a temporary quick fix.
So I'm wondering if there is a way to restore the lost connection without
jumping through all these hoops. A command-line solution would be nice.
I ought to add that I am running a desktop computer, but that I access my
network (shared network in my apartment building) via a CCrane wifi antenna;
which has served me without complaint for about ten years now.
All suggestions or observations are welcome, and thanks for taking the time.
However, please do not recommend that I buy a backup power supply; as indeed
that is on my wish list, but I cannot afford it at present. That would
prevent damage to my computer, but it's just not feasible for me now.
Bill