diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-07-16 08:27:15 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2014-07-16 08:27:15 +0000 |
commit | 5d46bcd3dcf88acc2af301585d073aae76e68c76 (patch) | |
tree | 9cd3e9762c7800255f5235a07aa12df7f21f7660 /distrib/miniroot/install.sub | |
parent | 62bae7c5a4b38557707b771685dec261abdfa7b0 (diff) |
Add a comment at the top of sysctl.conf when it is created by the
installer.
ok deraadt@ rpe@
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 3 insertions, 1 deletions
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 |