| | 269 | }}} |
| | 270 | |
| | 271 | |
| | 272 | [=#rtc] |
| | 273 | == Real Time Clock (RTC) Configuration |
| | 274 | System Time can be set from a Real Time Clock such as the DS1672 that the Gateworks System Controller emulates but this does not seem to work on modern Ubuntu out of the box. While the {{{util-linux}}} package that provides {{{hwclock}}} installs a service {{{/etc/init.d/hwclock.sh}}} it won't run because {{{systemd}}} is installed and the service is masked. |
| | 275 | |
| | 276 | You can work around this by installing a hwclock.service: |
| | 277 | {{{#!bash |
| | 278 | cat << EOF > /etc/systemd/system/hwclock.service |
| | 279 | [Unit] |
| | 280 | Description=Hardware clock synchronization |
| | 281 | [Service] |
| | 282 | Type=oneshot |
| | 283 | ExecStart=/sbin/hwclock --hctosys --utc --adjfile=/etc/adjtime |
| | 284 | ExecStop=/sbin/hwclock --systohc --utc --adjfile=/etc/adjtime |
| | 285 | [Install] |
| | 286 | WantedBy=multi-user.target |
| | 287 | EOF |
| | 288 | systemctl enable hwclock |