This Fixes #258 - Checks if /dev/fd is mounted on FreeBSD

This commit is contained in:
Frank Breedijk 2016-07-03 19:52:48 +02:00
parent aed0a8475a
commit 946506f3ac
1 changed files with 8 additions and 0 deletions

View File

@ -6643,6 +6643,13 @@ openssl_age() {
outln
}
bsd-bash() {
if [[ $(uname) -eq "FreeBSD" ]] && [[ $(count_lines "$(ls /dev/fd)") -le 3 ]]; then
echo "You need to mount fdescfs on FreeBSD: mount -t fdescfs fdesc /dev/fd"
exit 1
fi
}
help() {
cat << EOF
@ -8091,6 +8098,7 @@ maketempf
mybanner
check_proxy
openssl_age
bsd-bash
# TODO: it is ugly to have those two vars here --> main()
ret=0