Hi there!
Before opening this topic, I tried to search for it but forum Search field seems to be a little messed up.
I have an RTC module, I linked it to the Pi by following some guides on the net about it and I managed to see the original time set, write the actual one on it and set system time from it by using hwclock, so it does work.
My problem is that I should recreate the device every time I boot by giving
$this->bbcode_second_pass_code('', 'echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device')
as root; I could automatically do this by creating a systemd service script.
So here's mine:
$this->bbcode_second_pass_quote('rtclock.service', '[')code][Unit]
Description=RTC clock
Before=openntpd.service
[Type]
Type=oneshot
RemainAfterExit=1
[Service]
ExecStart=/bin/bash echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
ExecStartPost=/bin/bash hwclock -s
[/code]