From: Tilghman Lesher Date: Wed, 12 Jul 2006 18:29:01 +0000 (+0000) Subject: Merge fixup for asterisk startup script to zaptel startup script X-Git-Tag: 1.2.10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39882ad2f7d8b96c1481ab26ed1abafcb25ee526;p=thirdparty%2Fasterisk.git Merge fixup for asterisk startup script to zaptel startup script git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@37458 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/init.d/rc.mandrake.zaptel b/contrib/init.d/rc.mandrake.zaptel index c5c26000ed..dc88396480 100755 --- a/contrib/init.d/rc.mandrake.zaptel +++ b/contrib/init.d/rc.mandrake.zaptel @@ -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"