X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=contrib%2Finit.d%2Frc.mandrake.zaptel;h=dc88396480c14a862e9907852ec5637692dbd380;hp=c5c26000ed8c3541e6516d9e6a339028bb24b8a7;hb=730d68976ee84b6d819129e2918b1704b65967fa;hpb=2c65582b661045dd21bd6ae8b4515c652d9c064c diff --git a/contrib/init.d/rc.mandrake.zaptel b/contrib/init.d/rc.mandrake.zaptel old mode 100644 new mode 100755 index c5c2600..dc88396 --- 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"