summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sh
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-05-08 15:48:20 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-05-08 15:48:20 +0000
commitadd971c9f562ea93b1f31acbd08d8120f52ce890 (patch)
tree141ef0a538c24e893774cca98cde42dae77547f3 /distrib/miniroot/install.sh
parentf9ac3f2ed39dbf3ed8ecc0e9ddeebd2d6a6dcc9f (diff)
Don't try to copy disktab.shadow if it does not exist
Diffstat (limited to 'distrib/miniroot/install.sh')
-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