diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2021-07-16 15:24:45 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2021-07-16 15:24:45 +0000 |
commit | d0c664e7ade1bee31a5246973f68001e4e9e85dd (patch) | |
tree | 3603e3ca4ca49f8bbeb23d3b1b632da9e1d51b29 /distrib/miniroot | |
parent | 9508660334e16bccf065430f2a029d6ef4c640d8 (diff) |
Create working directories earlier so that resolvd can write
resolv.conf.shadow and start dhcpleased/resolvd.
OK deraadt
Diffstat (limited to 'distrib/miniroot')
-rw-r--r-- | distrib/miniroot/dot.profile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/distrib/miniroot/dot.profile b/distrib/miniroot/dot.profile index dc31f214c53..0baba160733 100644 --- a/distrib/miniroot/dot.profile +++ b/distrib/miniroot/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.44 2019/04/27 22:08:58 kn Exp $ +# $OpenBSD: dot.profile,v 1.45 2021/07/16 15:24:44 florian Exp $ # $NetBSD: dot.profile,v 1.1 1995/12/18 22:54:43 pk Exp $ # # Copyright (c) 2009 Kenneth R. Westerback @@ -54,7 +54,12 @@ if [[ -z $DONEPROFILE ]]; then # Create a fake rc that just returns 1 and throws us back. echo ! : >/etc/rc - # Start IPv6 stateless address autoconfiguration daemon. + # Create working directories with proper permissions in /tmp. + mkdir -m u=rwx,go=rx -p /tmp/{ai,i} + + # Start autoconfiguration daemons. + [[ -x /sbin/resolvd ]] && /sbin/resolvd + [[ -x /sbin/dhcpleased ]] && /sbin/dhcpleased [[ -x /sbin/slaacd ]] && /sbin/slaacd # Set up some sane tty defaults. @@ -65,10 +70,6 @@ if [[ -z $DONEPROFILE ]]; then Welcome to the $OBSD installation program. __EOT - - # Create working directories with proper permissions in /tmp. - mkdir -m u=rwx,go=rx -p /tmp/{ai,i} - # try unattended install /autoinstall -x |