stop ntpd from complaining about multiple IP addresses

This commit is contained in:
Tom Mortensen
2024-08-30 09:04:48 -07:00
parent 15f4138c87
commit 12828eec63

View File

@@ -101,8 +101,11 @@ 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
# 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
}
ntpd_status(){