From 20c98b04cc4e7a853d49469c92300973e2a170ec Mon Sep 17 00:00:00 2001 From: naddy Date: Mon, 21 Jul 2014 20:43:00 +0000 Subject: [PATCH] Bring back net.inet6.icmp6.rediraccept for rtsol. Pointed out by bluhm@ three days ago, oops. --- distrib/miniroot/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index bfa52c0f23a..0366e4c2ee3 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.250 2014/07/21 20:34:14 naddy Exp $ +# $OpenBSD: install.sh,v 1.251 2014/07/21 20:43:00 naddy Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -309,5 +309,11 @@ fi print -r -- "$rootkey" >> /mnt/root/.ssh/authorized_keys ) +if grep -qs '^rtsol' /mnt/etc/hostname.*; then + [[ ! -f /mnt/etc/sysctl.conf ]] && \ + echo "# created during install" >/mnt/etc/sysctl.conf + echo 'net.inet6.icmp6.rediraccept=1 # 1=Accept IPv6 ICMP redirects (for hosts)' >>/mnt/etc/sysctl.conf +fi + # Perform final steps common to both an install and an upgrade. finish_up -- 2.20.1