summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2016-12-02 10:59:27 +0000
committerajacoutot <ajacoutot@openbsd.org>2016-12-02 10:59:27 +0000
commit55c2d67510ce820d32c11a9933acbdf724a703a6 (patch)
tree1156cd00864a18e7fcdbd6010c67f3e02f45f8fc
parentFix flow-removed OFP header xid value: use htonl() instead of htons() for (diff)
downloadwireguard-openbsd-55c2d67510ce820d32c11a9933acbdf724a703a6.tar.xz
wireguard-openbsd-55c2d67510ce820d32c11a9933acbdf724a703a6.zip
Simplify.
-rw-r--r--usr.sbin/syspatch/syspatch.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index 2fc64fea830..e91b3b796d6 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.68 2016/12/02 08:34:28 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.69 2016/12/02 10:59:27 ajacoutot Exp $
#
# Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -161,9 +161,9 @@ install_kernel()
[[ -n ${_kern} ]]
if ${_BSDMP}; then
- [[ ${_kern##*/} == bsd ]] && _bsd=bsd.sp
- [[ ${_kern##*/} == bsd.mp ]] && _bsd=bsd
+ [[ ${_kern##*/} == bsd ]] && _bsd=bsd.sp || _bsd=bsd
fi
+
install -FS ${_kern} /${_bsd:-${_kern##*/}}
}