[svn-commits] trunk r37459 - in /trunk: ./ contrib/init.d/rc.mandrake.zaptel

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Jul 12 11:39:36 MST 2006


Author: tilghman
Date: Wed Jul 12 13:39:36 2006
New Revision: 37459

URL: http://svn.digium.com/view/asterisk?rev=37459&view=rev
Log:
Merged revisions 37458 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r37458 | tilghman | 2006-07-12 13:29:01 -0500 (Wed, 12 Jul 2006) | 2 lines

Merge fixup for asterisk startup script to zaptel startup script

........

Modified:
    trunk/   (props changed)
    trunk/contrib/init.d/rc.mandrake.zaptel

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/contrib/init.d/rc.mandrake.zaptel
URL: http://svn.digium.com/view/asterisk/trunk/contrib/init.d/rc.mandrake.zaptel?rev=37459&r1=37458&r2=37459&view=diff
==============================================================================
--- trunk/contrib/init.d/rc.mandrake.zaptel (original)
+++ trunk/contrib/init.d/rc.mandrake.zaptel Wed Jul 12 13:39:36 2006
@@ -17,7 +17,15 @@
 MODULES="usb-uhci zaptel wcfxo wcusb"
 ######################################
 
-[ -f /etc/sysconfig/`basename $0` ] && . /etc/sysconfig/`basename $0`
+# Resolve back to the basename (i.e. zaptel, not S90zaptel)
+if [ 0`readlink $0` = "0" ]; then
+	CONFIGFILE=/etc/sysconfig/`basename $0`
+else
+	CONFIG0=`readlink $0`
+	CONFIGFILE=/etc/sysconfig/`basename $CONFIG0`
+fi
+
+[ -f $CONFIGFILE ] && . $CONFIGFILE
 
 function probe() {
 	gprintf "                           $1"



More information about the svn-commits mailing list