Tiny Core Base > Raspberry Pi

Add getTime.sh to boot

(1/4) > >>

bmarkus:
Due to lack of RTC system starts with LINUX Time Zero. Please add getTime.sh to boot process.

roberts:
I don't think I can assume that the system would be connected to the internet.
In the most simple form adding:

until /usr/bin/getTime.sh; do
   sleep 3
done

to /opt/bootlocal.sh to run in background or
to cause the system to wait until time request is satisfied add to /opt/bootsync.sh

But perhaps would be safer to use a control loop counter around the getTiime.sh call.

bmarkus:
Yes, you can't expect network will be available, best is running a loop in background with few tries only, starting after udhcpd invoked.

BTW, Raspbian is running ntpd in the background.

roberts:
Completed.

bmarkus:
Tested in QEMU, works fine.

Navigation

[0] Message Index

[#] Next page

Go to full version