[asterisk-commits] rizzo: branch rizzo/video_v2 r85198 - /team/rizzo/video_v2/bootstrap.sh

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 10 01:49:58 CDT 2007


Author: rizzo
Date: Wed Oct 10 01:49:58 2007
New Revision: 85198

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85198
Log:
merge from trunk

Modified:
    team/rizzo/video_v2/bootstrap.sh

Modified: team/rizzo/video_v2/bootstrap.sh
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/bootstrap.sh?view=diff&rev=85198&r1=85197&r2=85198
==============================================================================
--- team/rizzo/video_v2/bootstrap.sh (original)
+++ team/rizzo/video_v2/bootstrap.sh Wed Oct 10 01:49:58 2007
@@ -14,16 +14,16 @@
 
 uname -s | grep -q BSD
 if [ $? = 0 ] ; then	# BSD case
-	uname -s | grep -q FreeBSD
-	if [ $? = 0 ] ; then # FreeBSD case
-		MY_AC_VER=259
-		MY_AM_VER=19
-	fi
-	uname -s | grep -q OpenBSD
-	if [ $? = 0 ] ; then # OpenBSD case
-		MY_AC_VER=-2.61
-		MY_AM_VER=-1.9
-	fi
+	case `uname -sr` in
+		'FreeBSD 4'*)	# FreeBSD 4.x has a different naming
+			MY_AC_VER=259
+			MY_AM_VER=19
+			;;
+		*)
+			MY_AC_VER=-2.61
+			MY_AM_VER=-1.9
+			;;
+	esac
 else	# linux case
 	MY_AC_VER=
 	MY_AM_VER=




More information about the asterisk-commits mailing list