From d7d7cd3f04fcfb852d9b48cd980d5b45793ada53 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Fri, 5 Jul 2013 14:52:27 +0200 Subject: [PATCH] Fix FreeBSD version detection. --- beadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beadm b/beadm index c320342..63aee7d 100755 --- a/beadm +++ b/beadm @@ -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