We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84ea073 commit 1754233Copy full SHA for 1754233
files/image_config/chrony/chrony-config.sh
@@ -1,5 +1,11 @@
1
#!/bin/bash
2
3
+hwclock --show &> /dev/null
4
+if [ $? -ne 0 ]; then
5
+ echo "hwclock --show failed, attempting hwclock --systohc..."
6
+ hwclock --systohc
7
+fi
8
+
9
sonic-cfggen -d -t /usr/share/sonic/templates/chrony.conf.j2 >/etc/chrony/chrony.conf
10
sonic-cfggen -d -t /usr/share/sonic/templates/chrony.keys.j2 >/etc/chrony/chrony.keys
11
chmod o-r /etc/chrony/chrony.keys
0 commit comments