Quantcast
Channel: PirateBox Forum - Raspberry Pi(rate)Box
Viewing all articles
Browse latest Browse all 1863

Re: Timesave with date v.8.23

$
0
0
Hi,
which image version do you run?
I added the following file to the new RPi-image-version, that is started on bootup:

/etc/systemd/system/timesave.service
[Unit]
Description=Restore fake RTC-time
[Service]
ExecStart=/bin/bash /opt/piratebox/bin/timesave.sh /opt/piratebox/conf/piratebox.conf recover
[Install]
WantedBy=multi-user.target

And I think I enabled it per default:
systemctl enable timesave.service

That was missing on the old image.

On testing with librarybox I encountered the "recover" problem two or three times, and AFTER I fixed it, it worked for me with the default - whatever it was 8-)

So, maybe you can simply run the following command to change the format for a working recovery:
sed 's|date `c|date -s `c|' -i /opt/piratebox/bin/timesave.sh
sed 's|date +%C%g%m%d%H%M|date|' -i /opt/piratebox/bin/timesave.sh
(I added those fixes to the package-prepare of a REAL archlinux package file, so the file is fixed for the archlinux version)

Can you check if that is fixing the issue for you?
Matthias

Viewing all articles
Browse latest Browse all 1863

Trending Articles