Add preliminary support for MidnightBSD.

This commit is contained in:
Lucas Holt
2021-02-26 16:55:56 -05:00
parent 3fe03807ef
commit 1710a09f6a
7 changed files with 32 additions and 1 deletions

View File

@@ -481,6 +481,11 @@ fi
if [ -z "${EMPTY_JAIL}" ]; then
## verify release
case "${RELEASE}" in
2.[0-9]*)
## check for MidnightBSD releases name
NAME_VERIFY=$(echo "${RELEASE}")
validate_release
;;
*-CURRENT|*-CURRENT-I386|*-CURRENT-i386|*-current)
## check for FreeBSD releases name
NAME_VERIFY=$(echo "${RELEASE}" | grep -iwE '^([1-9]{2,2})\.[0-9](-CURRENT|-CURRENT-i386)$' | tr '[:lower:]' '[:upper:]' | sed 's/I/i/g')