Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: vladosam on April 13, 2016, 12:09:40 PM

Title: Wrong dates on files after reboot
Post by: vladosam on April 13, 2016, 12:09:40 PM
Hi everyone. I have problem with picore7.0. Afther restart usr/local/lib/python3.4/site-packages change date to 1.1.1970. I have set static ip. And also correct TZ in cmdline.txt. In bootlocal.sh i have /etc/init.d/settime.sh. Date command gives me right time and date. I noticed if i run filetool.sh -r all persistent folder changes to current date and time but files dont. This is content of .filetool.lst
opt
home
etc/passwd
etc/shadow
etc/group
etc/gshadow
usr/local/etc/ssh
usr/local/lib/python3.4/site-packages
What am i doing wrong?
Title: Re: Wrong dates on files after reboot
Post by: bmarkus on April 13, 2016, 01:26:51 PM
In bootlocal.sh i have /etc/init.d/settime.sh.

It is not needed, time is set by the system during startup.
Title: Re: Wrong dates on files after reboot
Post by: vladosam on April 13, 2016, 01:36:08 PM
I removed /etc/init.d/settime.sh from bootlocal.sh now date command gives my 1.1.1970?
Title: Re: Wrong dates on files after reboot
Post by: bmarkus on April 13, 2016, 10:24:21 PM
Sorry I missed static IP. In such case you need it.

bootlocal is executed at the end os startup process. When backup files restored, no time set (except having an RTC), so system date is 1.1.1970
Title: Re: Wrong dates on files after reboot
Post by: vladosam on April 13, 2016, 11:09:23 PM
That is a problem for me. But I find a solution for that. I can use touch command before start some updates. Thanks.
Title: Re: Wrong dates on files after reboot
Post by: bmarkus on April 13, 2016, 11:40:49 PM
That is a problem for me.

Why is it a problem?

Title: Re: Wrong dates on files after reboot
Post by: vladosam on April 13, 2016, 11:49:17 PM
I want to make home automation server. So when I install python homassistant server everything is ok. I make it persistent restart and so on. But when I updated it after restart there is a ton of errors in the log about can't find files, dates not ok etc.
Title: Re: Wrong dates on files after reboot
Post by: bmarkus on April 13, 2016, 11:50:06 PM
I want to make home automation server. So when I install python homassistant server everything is ok. I make it persistent restart and so on. But when I updated it after restart there is a ton of errors in the log about can't find files, dates not ok etc.

Install RTC
Title: Re: Wrong dates on files after reboot
Post by: vladosam on April 13, 2016, 11:57:38 PM
Yea. That is what I'm gona do. :) I enjoy using picore. It's the best tool for my little project.  Thanks again.