diff options
author | 1999-07-19 00:57:46 +0000 | |
---|---|---|
committer | 1999-07-19 00:57:46 +0000 | |
commit | dc91f63f975769a161c5c9c8f1c4777649a8af7a (patch) | |
tree | 85bf3d3b50a00e5e7b843967bc6897a228bf9e74 | |
parent | Lower chatiness (diff) | |
download | wireguard-openbsd-dc91f63f975769a161c5c9c8f1c4777649a8af7a.tar.xz wireguard-openbsd-dc91f63f975769a161c5c9c8f1c4777649a8af7a.zip |
create /var/db/host.random at install time
-rw-r--r-- | distrib/miniroot/install.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 1623afdfb2d..0230f76f97d 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.53 1999/04/10 04:38:30 deraadt Exp $ +# $OpenBSD: install.sh,v 1.54 1999/07/19 00:57:46 deraadt Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -608,6 +608,9 @@ w q" | ed /mnt/etc/master.passwd 2> /dev/null /mnt/usr/sbin/pwd_mkdb -p -d /mnt/etc /etc/master.passwd +dd if=/mnt/dev/urandom of=/mnt/var/db/host.random bs=1024 count=64 >/dev/null 2>&1 +chmod 600 /mnt/var/db/host.random >/dev/null 2>&1 + unmount_fs /tmp/fstab.shadow # Pat on the back. |