One addition, line 71 in script also looks strange:
if ! cmp --silent "$oldstate" "$newstate" 2>/dev/null; then DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE
This causes: /etc/network/if-up.d/resolved: 71: DNS: not found
If you are on it, please fix this, too.
One addition, line 71 in script also looks strange:
if ! cmp --silent "$oldstate" "$newstate" 2>/dev/null; then
DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE
This causes: if-up.d/ resolved: 71: DNS: not found
/etc/network/
If you are on it, please fix this, too.