diff options
author | 1997-05-08 15:48:19 +0000 | |
---|---|---|
committer | 1997-05-08 15:48:19 +0000 | |
commit | 2c9458cd7de62882b81e60bb6d6fd44911ce4a94 (patch) | |
tree | 30f0608ab066a39a1352fe506bd42b819f8b99b2 | |
parent | s/powerpc/alpha/ (diff) | |
download | wireguard-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.sh | 6 |
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 |