summaryrefslogtreecommitdiff
path: root/sys/arch/landisk/conf
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-02-09 03:59:16 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-02-09 03:59:16 +0000
commitc95a95dae60b9d76c1e54d2a4500d800719b79b9 (patch)
treee20632b7aaead1e91ad1afd1e15c402274fa3434 /sys/arch/landisk/conf
parenta03d74c28ae88ea0249c512b98cf80f0df457d3e (diff)
Check for the existence of /bsd before trying to back it up to /obsd.
Fixes 'make install' when /bsd is not present for some reason. ok rob florian, "fine with me" deraadt
Diffstat (limited to 'sys/arch/landisk/conf')
-rw-r--r--sys/arch/landisk/conf/Makefile.landisk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/landisk/conf/Makefile.landisk b/sys/arch/landisk/conf/Makefile.landisk
index a87efd66fb7..9cec25aae9e 100644
--- a/sys/arch/landisk/conf/Makefile.landisk
+++ b/sys/arch/landisk/conf/Makefile.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.landisk,v 1.76 2017/11/04 16:04:16 florian Exp $
+# $OpenBSD: Makefile.landisk,v 1.77 2018/02/09 03:59:15 tb Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -141,7 +141,7 @@ locore0.o: ${_machdir}/${_mach}/locore0.S assym.h
locore_subr.o vectors.o in_cksum.o: assym.h
hardlink-obsd:
- cmp -s bsd /bsd || ln -f /bsd /obsd
+ [[ ! -f /bsd ]] || cmp -s bsd /bsd || ln -f /bsd /obsd
newinstall:
umask 077 && cp bsd /nbsd && mv /nbsd /bsd && \