]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
hostname: Ensure it's not clobbered by SLAAC
authorMark Davies <mark@ecs.vuw.ac.nz>
Tue, 21 Apr 2020 09:34:09 +0000 (10:34 +0100)
committerRoy Marples <roy@marples.name>
Tue, 21 Apr 2020 09:34:09 +0000 (10:34 +0100)
Because it cannot carry a hostname and user could be forcing it.

hooks/30-hostname.in

index 579c73d3c22f85a49db8431e8b48a25423748774..b515e4c13789d56100262cd7ed9e7f32f287b764 100644 (file)
@@ -153,6 +153,6 @@ BOUND6|RENEW6|REBIND6|REBOOT6|INFORM6)
        ;;
 esac
 
-if $if_up; then
+if $if_up && [ "$reason" != ROUTERADVERT ]; then
        set_hostname
 fi