We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d433e52 commit 4cd54edCopy full SHA for 4cd54ed
files/image_config/ntp/ntp-config.sh
@@ -26,12 +26,7 @@ function modify_ntp_default
26
sonic-cfggen -d -t /usr/share/sonic/templates/ntp.conf.j2 >/etc/ntp.conf
27
28
get_database_reboot_type
29
-if [[ x"${reboot_type}" == x"cold" ]]; then
30
- echo "Enabling NTP long jump for reboot type ${reboot_type} ..."
31
- modify_ntp_default "s/NTPD_OPTS='-x'/NTPD_OPTS='-g'/"
32
-else
33
- echo "Disabling NTP long jump for reboot type ${reboot_type} ..."
34
- modify_ntp_default "s/NTPD_OPTS='-g'/NTPD_OPTS='-x'/"
35
-fi
+echo "Disabling NTP long jump for reboot type ${reboot_type} ..."
+modify_ntp_default "s/NTPD_OPTS='-g'/NTPD_OPTS='-x'/"
36
37
systemctl restart ntp
0 commit comments