Fix FreeBSD version detection.

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2013-07-05 14:52:27 +02:00
parent 08e3444d17
commit d7d7cd3f04
1 changed files with 1 additions and 1 deletions

2
beadm
View File

@ -29,7 +29,7 @@ unset LC_ALL
unset LANG
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
if [ $( uname -r | cut -d '.' -f1 ) -lt 8 ]
if [ $( uname -r | cut -d '-' -f1 | cut -d '.' -f1 ) -lt 8 ]
then
echo "ERROR: beadm works on FreeBSD 8.0 or later"
exit 1