Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: tcFan on December 30, 2018, 04:23:43 PM

Title: [Solved] Auto connect to wifi onboot wasn't working
Post by: tcFan on December 30, 2018, 04:23:43 PM
 Followed the guide on the wiki*, I'd suggest using "sleep 3" between the wpa and dhcpcd commands, as it seems the latter get there much faster and knocks his face on the door, i mean, received a SIGTERM(!)

* ie. verified the commands and conf file worked when issuing manually, after using bootlocal.sh didn't connect unless i reissued the dhcpcd command. sleep solved for me.

btw, I have a script that complains running as root ("dont run this as root") but it does run it if I first run it as non root. Anyway to fix this so I can run from bootlocal?

Title: Re: [Solved] Auto connect to wifi onboot wasn't working
Post by: Rich on December 30, 2018, 04:38:16 PM
Hi tcFan
Followed the guide on the wiki*, I'd suggest using "sleep 3" between the wpa and dhcpcd commands, ...
You might consider a including link so people don't have to guess where in the Wiki.

Quote
btw, I have a script that complains running as root ("dont run this as root") but it does run it if I first run it as non root. Anyway to fix this so I can run from bootlocal?
Maybe you could call the script from the end of your  .profile  file in your home directory?
Title: Re: [Solved] Auto connect to wifi onboot wasn't working
Post by: Greg Erskine on December 30, 2018, 06:03:51 PM
Hi tcFan,

To run a program as a specific user:

$ sudo -u tc tce-load -i net-usb-KERNEL.tcz

regards
Greg