Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: lnrobby on July 18, 2018, 08:58:38 AM
-
I am new to tinycore (and linux) so this question may be simple and I just haven't found it on google.
I am using bootlocal.sh to start crond. Is there any way to wait for a good system time before it starts up?
Presently I have a sleep 30 after starting up wifi which works fine but seems a bit hit and miss.
Thanks
Len
-
hi lnrobby,
To start cron I think you should use the "cron" bootcode then /etc/init.d/tc-config handles the startup of cron at the right time.
regards
Greg
-
Look in settime.sh, there's a loop that waits until the time is not older than 2015.
-
I have a shell script loop that checks for the IP address at the start.
Most of mine run behind a firewall so they needed the ip address for the local NTP server too.
There are two main files that are useful for putting these in.
bootlocal.sh and bootstart.sh if I remember right?
-
Got it working by using the boot code for cron.
I did have some trouble locating information on how to do this at first, and found it is dependant on the particular PI you are using.
I found this article.
/https://iotbytes.wordpress.com/change-picore-boot-codes-boot-options/
Thanks for the help
-
and found it is dependant on the particular PI you are using.
Can you explain what do you mean?
-
hi bmarkus,
Quote from linked article:
You can edit the “cmdline” file based on your Raspberry Pi Model and change the Boot Codes as per your requirements. For me, the file name is “cmdline3.txt” (as I am using Raspberry Pi 3), so I will use the following command to change Boot Codes
regards
Greg