Revert "stop ntpd from complaining about multiple IP addresses"

This commit is contained in:
Tom Mortensen
2024-10-09 09:19:14 -07:00
parent ee31e35849
commit a866de833a

View File

@@ -101,11 +101,8 @@ ntpd_reload(){
ntpd_update(){
# 0 = update needed, 1 = no action
# if ! ntpd_running; then exit 1; fi
# if check && [[ "$(this 'interface listen')" == "$BIND" ]]; then exit 1; else exit 0; fi
# upon network change always return 'update needed' - subsequent reload stops ntp complaining
# when multiple interfaces have same IP address (such as shim-br0).
if ntpd_running; then exit 0; else exit 1; fi
if ! ntpd_running; then exit 1; fi
if check && [[ "$(this 'interface listen')" == "$BIND" ]]; then exit 1; else exit 0; fi
}
ntpd_status(){