forked from mirrors/openup
use a separate installurl-mtier file for syspatch
This commit is contained in:
parent
d37683cd9b
commit
b928daf3e2
1 changed files with 3 additions and 2 deletions
5
openup
5
openup
|
|
@ -275,8 +275,9 @@ patch_syspatch() {
|
|||
cp /usr/sbin/syspatch /usr/sbin/syspatch.pre-mtier
|
||||
sed -i \
|
||||
"s,openbsd-\${_OSrev}-syspatch.pub,mtier-\${_OSrev}-pkg.pub,g; \
|
||||
s,\${_MIRROR}/syspatch,https://stable.mtier.org/syspatch,g" \
|
||||
s,/etc/installurl,/etc/installurl-mtier,g" \
|
||||
/usr/sbin/syspatch
|
||||
[ -e /etc/installurl-mtier ] || echo https://stable.mtier.org > /etc/installurl-mtier
|
||||
}
|
||||
|
||||
trap "bye_bye" 1 2 3 13 15
|
||||
|
|
@ -294,7 +295,7 @@ fi
|
|||
set -A _REL -- $(sysctl -n kern.version | sed 's/^OpenBSD \([0-9]\.[0-9]\)\([^ ]*\).*/\1 \2/;q')
|
||||
_REL_INT="$(echo ${_REL[0]} | tr -d '.')"
|
||||
_OPENUP_MINREL=60
|
||||
_OPENUP_VERSION=32
|
||||
_OPENUP_VERSION=33
|
||||
if [ -n "${_REL[1]}" -a "${_REL[1]}" != "-stable" ]; then _badrel=1; fi
|
||||
if [ "${_REL_INT}" -lt "${_OPENUP_MINREL}" ]; then _badrel=1; fi
|
||||
if [ -n "${_badrel}" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue