diff options
author | 2016-09-06 14:33:42 +0000 | |
---|---|---|
committer | 2016-09-06 14:33:42 +0000 | |
commit | 0b8cdcf5afbcb36d6e946e84ff02fa2cc70d03f5 (patch) | |
tree | 4723332b599f80f4285a5f67866426067a86f926 /usr.sbin/syspatch/syspatch.sh | |
parent | Greatly simplify patch type detection and make things more generic. (diff) | |
download | wireguard-openbsd-0b8cdcf5afbcb36d6e946e84ff02fa2cc70d03f5.tar.xz wireguard-openbsd-0b8cdcf5afbcb36d6e946e84ff02fa2cc70d03f5.zip |
Drop useless variable and check.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 1c8a110b66e..ae044d7ee70 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.7 2016/09/06 14:32:06 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.8 2016/09/06 14:33:42 ajacoutot Exp $ # # Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -131,20 +131,17 @@ install_file() install_kernel() { - local _backup=false _bsd=/bsd _kern=$1 + local _bsd=/bsd _kern=$1 [[ -n ${_kern} ]] # we only save the original release kernel once - [[ -f /bsd.rollback${_RELINT} ]] || _backup=true + [[ -f /bsd.rollback${_RELINT} ]] || \ + install -FSp /bsd /bsd.rollback${_RELINT} if ${_BSDMP}; then [[ ${_kern##*/} == bsd ]] && _bsd=/bsd.sp fi - if ${_backup}; then - install -FSp /bsd /bsd.rollback${_RELINT} || return - fi - if [[ -n ${_bsd} ]]; then install -FS ${_kern} ${_bsd} || return fi |