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 ProtectHome=yes
DeviceAllow=/dev/rtc_i2c rw DeviceAllow=/dev/rtc_i2c rw
DevicePolicy=closed 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] [Install]
WantedBy=time-sync.target WantedBy=time-sync.target