Revision
15438
Author
anthm
Date
2009-11-11 21:46:43 -0600 (Wed, 11 Nov 2009)

Log Message

find prefix better

Modified Paths

Diff

Modified: freeswitch/trunk/support-d/fscore_pb (15437 => 15438)


--- freeswitch/trunk/support-d/fscore_pb	2009-11-12 03:38:26 UTC (rev 15437)
+++ freeswitch/trunk/support-d/fscore_pb	2009-11-12 03:46:43 UTC (rev 15438)
@@ -4,10 +4,12 @@
 shift
 
 prefix=$(cat config.status | grep @prefix@ | awk -F, '{print $3}')
+if [ -z "$prefix" ] ; then
+    prefix=$(cat config.status | grep '"prefix"' | awk -F\" '{print $4}')
+fi
 
 if [ -z "$prefix" ] ; then
-	echo "Cannot determine prefix!"
-	exit 255
+    prefix="/usr/local/freeswitch"
 fi
 
 if [ "$arg" = "gcore" ] ; then