aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/init.d/rc.mandrake.zaptel
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/init.d/rc.mandrake.zaptel')
-rwxr-xr-xcontrib/init.d/rc.mandrake.zaptel10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/init.d/rc.mandrake.zaptel b/contrib/init.d/rc.mandrake.zaptel
index c5c26000e..dc8839648 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"