WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Wifi (re)connect after power failure  (Read 863 times)

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Wifi (re)connect after power failure
« on: December 08, 2023, 10:37:42 AM »
Hi all,

I am running Tinycorelinux 9.x (armv6) on a headless zero w pi connected by wifi.

Last night my house had a power failure. Both my pi and router went down (no UPS).
After the power came back on the pi was not able to (re)connect to the router wifi.
I expect the Pi boots faster than the router so router wifi wasn't up yet when the Pi was looking for it.

How do i configure tinycore so that it will keep looking for wifi availability, to avoid this problem?

Help is much appreciated! thnx!  ;D


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: Wifi (re)connect after power failure
« Reply #1 on: December 08, 2023, 11:31:11 AM »
Hi eSPee
I presume you are using  wifi.sh  for your wireless
connection. That being the case:
Code: [Select]
tc@box:~$ sudo wifi.sh -?
Usage:
  Default select AP from menu and request IP via DHCP.
  -a Auto connect to first wifi.db entry via DHCP.
  -p Select AP from menu and prompt for IP configuration type.
  -w Wait indefinitely until lease is obtained
  -? Displays this help message.
tc@box:~$

Try adding the  w  option to the  wifi.sh  command.
I suspect the command is in  /opt/bootlocal.sh.

Offline eSPee

  • Newbie
  • *
  • Posts: 23
Re: Wifi (re)connect after power failure
« Reply #2 on: December 10, 2023, 11:12:28 AM »
Hi Rich,

Thnx for helping, i will try it and report back!

Best regards eSpee