From 5d46bcd3dcf88acc2af301585d073aae76e68c76 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Wed, 16 Jul 2014 08:27:15 +0000 Subject: Add a comment at the top of sysctl.conf when it is created by the installer. ok deraadt@ rpe@ --- distrib/miniroot/install.sub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'distrib/miniroot/install.sub') diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index bea4fb52106..ff70b8181b3 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.781 2014/07/15 08:49:50 deraadt Exp $ +# $OpenBSD: install.sub,v 1.782 2014/07/16 08:27:14 ajacoutot Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback # All rights reserved. @@ -1815,6 +1815,8 @@ apply() fi if [[ -n $aperture ]]; then + [[ ! -f /mnt/etc/sysctl.conf ]] && \ + echo "# created during install" >/mnt/etc/sysctl.conf echo "machdep.allowaperture=$aperture # See xf86(4)" \ >>/mnt/etc/sysctl.conf fi -- cgit v1.2.3