summaryrefslogtreecommitdiffstats
path: root/hooks
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
commit92a4102beb58d5f3b2c6aead6039d37a5f6b2d95 (patch)
tree1760ff3cd6012be4a4da18babeb23542f8bb7e16 /hooks
parent453c60d5cdf957fb4a24cac07aad70ae1edde661 (diff)
downloaddhcpcd-92a4102beb58d5f3b2c6aead6039d37a5f6b2d95.tar.xz
hostname: Ensure it's not clobbered by SLAAC
Because it cannot carry a hostname and user could be forcing it.
Diffstat (limited to 'hooks')
-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