From: Mark Davies Date: Tue, 21 Apr 2020 09:34:09 +0000 (+0100) Subject: hostname: Ensure it's not clobbered by SLAAC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a4102beb58d5f3b2c6aead6039d37a5f6b2d95;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