Angus Asterisk schrieb:

> It seems that the zaptel startup script does not work.  I noticed at startup
> the line:
> /etc/init.d/zaptel: line 40: /etc/init.d/functions: No such file or
> directory
> 
> Line 40:
> # Source function library.
> if [ $system = redhat ]; then
>     . $initdir/functions || exit 0
> Fi

> The . %initdir... is line 40.
> 
> Any ideas how to fix this file on suse?

/etc/init.d/functions might be available as /lib/lsb/init-functions
so the snippet in /etc/init.d/zaptel could be changed to something
like

# Source function library.
if [ -e /lib/lsb/init-functions ]; then
  . /lib/lsb/init-functions || exit 0
elif [ -e $initdir/functions ]; then
  . $initdir/functions || exit 0
fi

(untested)

    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to