/etc/sysconfig/asterisk ignored in /etc/init.d/asterisk

from /etc/init.d/asterisk:

Allow configuration overrides in /etc/sysconfig/asterisk

CONFIG0=readlink $0
if [ “$CONFIG0” = “” ]; then
CONFIGFILE=/etc/sysconfig/basename $0
else
CONFIGFILE=/etc/sysconfig/basename $CONFIG0
fi
[ -x $CONFIGFILE ] && . $CONFIGFILE

shouldn´t it be “[ -f $CONFIGFILE ] && . $CONFIGFILE” <- this works for me to use /etc/sysconfig/asterisk

but I think the next time asterisk16-core is updated by yum - the init-script will be replaced.

right now I´m on: asterisk16-core-1.6.0.26-2_centos5

thx,
abdul

ok - new version of /etc/init.d/asterisk is installed as asterisk.rpmsave - so no need to worry about overrides…

ok - my mistake - .rpmsave means that my file with the changes is in asterisk.rpmsave and new asterisk file is the maintainer version - wich again ignores /etc/sysconfig/asterisk (where I declare an alternativ safe-asterisk).

so still in trouble…

anyone can help?

thx,

abdull