summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Davies <mark@ecs.vuw.ac.nz>2020-04-21 10:34:09 +0100
committerRoy Marples <roy@marples.name>2020-04-21 10:34:09 +0100
commit255e7697b80c1d1d04bc98479b0559c6f570c2fa (patch)
tree1760ff3cd6012be4a4da18babeb23542f8bb7e16
parenta1dc590073abcc048b2a1c74e31eefc18f27049a (diff)
downloaddhcpcd-9.0.2.tar.xz
hostname: Ensure it's not clobbered by SLAACdhcpcd-9.0.2
Because it cannot carry a hostname and user could be forcing it.
-rw-r--r--hooks/30-hostname.in2
1 files changed, 1 insertions, 1 deletions
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