[asterisk-commits] branch 1.2 r37458 -
/branches/1.2/contrib/init.d/rc.mandrake.zaptel
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jul 12 11:29:01 MST 2006
Author: tilghman
Date: Wed Jul 12 13:29:01 2006
New Revision: 37458
URL: http://svn.digium.com/view/asterisk?rev=37458&view=rev
Log:
Merge fixup for asterisk startup script to zaptel startup script
Modified:
branches/1.2/contrib/init.d/rc.mandrake.zaptel
Modified: branches/1.2/contrib/init.d/rc.mandrake.zaptel
URL: http://svn.digium.com/view/asterisk/branches/1.2/contrib/init.d/rc.mandrake.zaptel?rev=37458&r1=37457&r2=37458&view=diff
==============================================================================
--- branches/1.2/contrib/init.d/rc.mandrake.zaptel (original)
+++ branches/1.2/contrib/init.d/rc.mandrake.zaptel Wed Jul 12 13:29:01 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 asterisk-commits
mailing list