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
This commit is contained in:
Tilghman Lesher
2006-07-12 18:29:01 +00:00
parent ff3890a952
commit 39882ad2f7

View File

@@ -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"