diff hooks/20-resolv.conf @ 5535:a0d828e25482 draft

Add --noconfigure option With this set dhcpcd will not configure anything on the host. The expectation is that a 3rd party script will instead.
author Roy Marples <roy@marples.name>
date Wed, 04 Nov 2020 14:18:48 +0000
parents b2ea9faab536
children 4fe5c2a71254
line wrap: on
line diff
--- a/hooks/20-resolv.conf	Wed Nov 04 11:31:40 2020 +1300
+++ b/hooks/20-resolv.conf	Wed Nov 04 14:18:48 2020 +0000
@@ -198,8 +198,10 @@
 	;;
 esac
 
-if $if_up || [ "$reason" = ROUTERADVERT ]; then
-	add_resolv_conf
-elif $if_down; then
-	remove_resolv_conf
+if $if_configured; then
+	if $if_up || [ "$reason" = ROUTERADVERT ]; then
+		add_resolv_conf
+	elif $if_down; then
+		remove_resolv_conf
+	fi
 fi