From: Mark Davies Date: Tue, 21 Apr 2020 09:34:09 +0000 (+0100) Subject: hostname: Ensure it's not clobbered by SLAAC X-Git-Tag: v9.0.2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=255e7697b80c1d1d04bc98479b0559c6f570c2fa;p=thirdparty%2Fdhcpcd.git hostname: Ensure it's not clobbered by SLAAC Because it cannot carry a hostname and user could be forcing it. --- diff --git a/hooks/30-hostname.in b/hooks/30-hostname.in index 579c73d3..b515e4c1 100644 --- a/hooks/30-hostname.in +++ b/hooks/30-hostname.in @@ -153,6 +153,6 @@ BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6) ;; esac -if $if_up; then +if $if_up && [ "$reason" != ROUTERADVERT ]; then set_hostname fi