summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-05-08 15:48:19 +0000
committertholo <tholo@openbsd.org>1997-05-08 15:48:19 +0000
commit2c9458cd7de62882b81e60bb6d6fd44911ce4a94 (patch)
tree30f0608ab066a39a1352fe506bd42b819f8b99b2
parents/powerpc/alpha/ (diff)
downloadwireguard-openbsd-2c9458cd7de62882b81e60bb6d6fd44911ce4a94.tar.xz
wireguard-openbsd-2c9458cd7de62882b81e60bb6d6fd44911ce4a94.zip
Don't try to copy disktab.shadow if it does not exist
-rw-r--r--distrib/miniroot/install.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh
index 18352218a80..7abe1ffdc9b 100644
--- a/distrib/miniroot/install.sh
+++ b/distrib/miniroot/install.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sh,v 1.7 1997/05/03 23:06:01 tholo Exp $
+# $OpenBSD: install.sh,v 1.8 1997/05/08 15:48:19 tholo Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -116,7 +116,9 @@ fi
if [ "`df /`" = "`df /mnt`" ]; then
# Install the shadowed disktab file; lets us write to it for temporary
# purposes without mounting the miniroot read-write.
- cp /etc/disktab.shadow /tmp/disktab.shadow
+ if [ -f /etc/disktab.shadow ]; then
+ cp /etc/disktab.shadow /tmp/disktab.shadow
+ fi
while [ "X${ROOTDISK}" = "X" ]; do
getrootdisk