diff options
author | 2018-03-10 12:34:53 +0000 | |
---|---|---|
committer | 2018-03-10 12:34:53 +0000 | |
commit | 36a7666987c5d5ac34193c4f1fdf723f76fab032 (patch) | |
tree | e9d209ed58828a5169c064d6649695a291947f87 | |
parent | raise bnx(4)'s rxring lwm to 16, ok deraadt (diff) | |
download | wireguard-openbsd-36a7666987c5d5ac34193c4f1fdf723f76fab032.tar.xz wireguard-openbsd-36a7666987c5d5ac34193c4f1fdf723f76fab032.zip |
Allow fetching syspatches from ftp.
from Andrew Marks
ok deraadt@
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 9c4f5c54252..023e1fdd9ec 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.134 2017/12/29 18:56:36 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.135 2018/03/10 12:34:53 ajacoutot Exp $ # # Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -264,7 +264,7 @@ _OSrev=${_KERNV[0]%.*}${_KERNV[0]#*.} _MIRROR=$(while read _line; do _line=${_line%%#*}; [[ -n ${_line} ]] && print -r -- "${_line}"; done </etc/installurl | tail -1) 2>/dev/null -[[ ${_MIRROR} == @(file|http|https)://* ]] || +[[ ${_MIRROR} == @(file|ftp|http|https)://* ]] || sp_err "${0##*/}: invalid URL configured in /etc/installurl" _MIRROR="${_MIRROR}/syspatch/${_KERNV[0]}/$(machine)" |