changeset 5163:b1808edeb35d draft dhcpcd-9.0.2

hostname: Ensure it's not clobbered by SLAAC Because it cannot carry a hostname and user could be forcing it.
author Mark Davies <mark@ecs.vuw.ac.nz>
date Tue, 21 Apr 2020 10:34:09 +0100
parents 18acf515ec7c
children c2323c46e72e
files hooks/30-hostname.in
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hooks/30-hostname.in	Tue Apr 21 10:32:00 2020 +0100
+++ b/hooks/30-hostname.in	Tue Apr 21 10:34:09 2020 +0100
@@ -153,6 +153,6 @@
 	;;
 esac
 
-if $if_up; then
+if $if_up && [ "$reason" != ROUTERADVERT ]; then
 	set_hostname
 fi