WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] autoconnect to home router after a boot, how?  (Read 1316 times)

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
[Solved] autoconnect to home router after a boot, how?
« on: February 23, 2022, 05:19:59 AM »
I am using 32bit TC13.  I have to manually connect to my home router with ESSID CHANG each time after about 10sec of delay.  Can I automate the process? I tried "sleep 10; wifi sh &" (without the quote) in ~/.X.d/autostart.  I am guessing I need to start wifi configuration file? 
« Last Edit: February 23, 2022, 08:32:10 AM by Rich »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: autoconnect to home router after a boot, how?
« Reply #1 on: February 23, 2022, 07:22:15 AM »
Hi

wifi.sh requires sudo privilege
Use /opt/bootlocal.sh instead
Code: [Select]
pkill /sbin/udhcpc
wifi.sh -a &
sh -c 'sleep 10 && getTime.sh' &

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
Re: autoconnect to home router after a boot, how?(SOLVED)
« Reply #2 on: February 23, 2022, 07:49:29 AM »
Hi

wifi.sh requires sudo privilege
Use /opt/bootlocal.sh instead
Code: [Select]
pkill /sbin/udhcpc
wifi.sh -a &
sh -c 'sleep 10 && getTime.sh' &

I tried to find solution for this for a long time, thanks, works great.
« Last Edit: February 23, 2022, 08:02:12 AM by puppybyte! »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: autoconnect to home router after a boot, how?
« Reply #3 on: February 23, 2022, 08:30:52 AM »
Hi puppybyte
You are welcome  8)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: [Solved] autoconnect to home router after a boot, how?
« Reply #4 on: February 23, 2022, 08:36:46 AM »
Hi puppybyte!
I've marked that your thread is solved. You can not edit posts after 30 minutes, so if you want something marked
as solved, just ask.  :)