WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline puppybyte!

  • Jr. Member
  • **
  • Posts: 91
[Solved] autoconnect to home router after a boot, how?
« on: February 23, 2022, 08: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, 11:32:10 AM by Rich »

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: autoconnect to home router after a boot, how?
« Reply #1 on: February 23, 2022, 10: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, 10: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, 11:02:12 AM by puppybyte! »

Offline polikuo

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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11702
Re: [Solved] autoconnect to home router after a boot, how?
« Reply #4 on: February 23, 2022, 11: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.  :)