Fix i2c-clock

This commit is contained in:
pgrondek 2021-03-09 11:33:26 +01:00
parent 8a2e3f0c93
commit a95fad071a

View File

@ -14,7 +14,8 @@ ProtectSystem=full
ProtectHome=yes
DeviceAllow=/dev/rtc_i2c rw
DevicePolicy=closed
ExecStart=/usr/bin/echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device && /sbin/hwclock --s
ExecStartPre=/usr/bin/echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
ExecStart=/sbin/hwclock -s
[Install]
WantedBy=time-sync.target