summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2014-07-21 20:43:01 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2014-07-21 20:43:01 +0000
commit76338e815bfd846c873988796526d469daa23b34 (patch)
tree2011debd613e211ea3ad48ea90f34eb5f818ce0c /distrib/miniroot
parentc9afb6cdce677d81f7970d8d00ba3e111cb3a491 (diff)
Bring back net.inet6.icmp6.rediraccept for rtsol. Pointed out by
bluhm@ three days ago, oops.
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sh8
1 files changed, 7 insertions, 1 deletions
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