Re: [Asterisk-Users] Error running Make config on Debian Sarge

2005-05-22 Thread Tzafrir Cohen
On Mon, May 16, 2005 at 12:53:49PM -0500, Ben Johnson wrote:
 I am running Asterisk 1.0.7 on Debian Sarge RC3.  When I attempt to run 
 make config to create the zaptel boottime script I receive the following

Frankly, you don't need to.

Chances are /etc/rcS.d/S40hotplug will detect your card's module and
modprobe it. modprobe will then run ztcfg as per the instruction in
/etc/modules.conf /etc/modprobe.conf .

If this is not the case, then add themodule to /etc/modules, and the
module will be modprobed  nevertheless.

Reasons why the module won't be discovered:

* The module is ztdummy (you don't have a card)
* You disabled hotplug (Not a very bad move)
* Hotplug did not discover your card (this is probably a bug, and worth
  reporting)

 
 if [ -d /etc/rc.d/init.d ]; then \
install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \
chkconfig --add zaptel; \
 elif [ -d /etc/init.d ]; then \
install -D -m 755 zaptel.init /etc/init.d/zaptel; \
chkconfig --add zaptel; \
 fi

totally irrelevant to debian. However there is a part in the makefile
that should have replaced 'chkconfig' with ':', right. I wonder is there
is any warning above about redefinition of CHKCONFIG (my private
crusade, sorry)

Actually in my rapid package I disabled running ztcfg at modprobe time
and did add an init.d script that simply runs ztcfg.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |   | a Mutt's  
[EMAIL PROTECTED] |   |  best
ICQ# 16849755 |   | friend
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Error running Make config on Debian Sarge

2005-05-16 Thread Ben Johnson
I am running Asterisk 1.0.7 on Debian Sarge RC3.  When I attempt to run 
make config to create the zaptel boottime script I receive the following

if [ -d /etc/rc.d/init.d ]; then \
   install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \
   chkconfig --add zaptel; \
elif [ -d /etc/init.d ]; then \
   install -D -m 755 zaptel.init /etc/init.d/zaptel; \
   chkconfig --add zaptel; \
fi
/bin/sh: line 1: chkconfig: command not found
make: *** [config] Error 127
Also if I make config on asterisk, i get the following
if [ -d /etc/rc.d/init.d ]; then \
   install -m 755 contrib/init.d/rc.redhat.asterisk 
/etc/rc.d/init.d/asterisk; \
   /sbin/chkconfig --add asterisk; \
elif [ -d /etc/init.d ]; then \
   install -m 755 init.asterisk /etc/init.d/asterisk; \
fi
install: cannot stat `init.asterisk': No such file or directory
make: *** [config] Error 1


After looking around a bit, it appears that there is a file 
/usr/src/asterisk/contrib/init.d/rc.debian.asterisk and 
/usr/src/zaptel/zaptel.ini that are supposed to be used for the startup 
scripts.  So I copied zaptel.init to /etc/init.d/zaptel and tried running it 
to verify proper operation.  When I run the script, I receive

./zaptel: line 12: /etc/rc.d/init.d/functions: No such file or directory
So what can I try next.  Right now I am just typing the commands when the 
box is restarted, but I would like to get this resolved so I don't have to.

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


Re: [Asterisk-Users] Error running Make config on Debian Sarge

2005-05-16 Thread Paul
Ben Johnson wrote:
I am running Asterisk 1.0.7 on Debian Sarge RC3.  When I attempt to 
run make config to create the zaptel boottime script I receive the 
following

if [ -d /etc/rc.d/init.d ]; then \
   install -D -m 755 zaptel.init /etc/rc.d/init.d/zaptel; \
   chkconfig --add zaptel; \
elif [ -d /etc/init.d ]; then \
   install -D -m 755 zaptel.init /etc/init.d/zaptel; \
   chkconfig --add zaptel; \
fi
/bin/sh: line 1: chkconfig: command not found
make: *** [config] Error 127
Also if I make config on asterisk, i get the following
if [ -d /etc/rc.d/init.d ]; then \
   install -m 755 contrib/init.d/rc.redhat.asterisk 
/etc/rc.d/init.d/asterisk; \
   /sbin/chkconfig --add asterisk; \
elif [ -d /etc/init.d ]; then \
   install -m 755 init.asterisk /etc/init.d/asterisk; \
fi
install: cannot stat `init.asterisk': No such file or directory
make: *** [config] Error 1


After looking around a bit, it appears that there is a file 
/usr/src/asterisk/contrib/init.d/rc.debian.asterisk and 
/usr/src/zaptel/zaptel.ini that are supposed to be used for the 
startup scripts.  So I copied zaptel.init to /etc/init.d/zaptel and 
tried running it to verify proper operation.  When I run the script, I 
receive

./zaptel: line 12: /etc/rc.d/init.d/functions: No such file or directory
So what can I try next.  Right now I am just typing the commands when 
the box is restarted, but I would like to get this resolved so I don't 
have to.

If you can't use the debian binaries already available, look at the 
debian source for these packages. You can modify that source and build 
packages. You can at least look at the packaging to see what build and 
runtime dependencies exist.

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


Re: [Asterisk-Users] Error running Make config on Debian Sarge

2005-05-16 Thread Andres Paglayan
follow this link
ignore the German and see the commands
http://www.vonloesch.de/node/17 http://www.vonloesch.de/node/17
for the last part be sure that you modprobe the right driver for your
particular device.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users