I think this should unset the variables, then error goes away and it makes sense!
if ! cmp --silent "$oldstate" "$newstate" 2>/dev/null; then unset DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE
I think this should unset the variables, then error goes away and it makes sense!
if ! cmp --silent "$oldstate" "$newstate" 2>/dev/null; then
unset DNS DNS6 DOMAINS DOMAINS6 DEFAULT_ROUTE