On Thursday 28 Apr 2016, Mamadou NGOM wrote:> Hello, > it doesn't work my dahdi yet .for information, i use debian 8 . > I put the file dahdi.bash in /etc/init.d and I gave it the permission 755 > but i have the same error: bash: /etc/init.d/dahdi: No such file or > directoryYou need to name the file just "dahdi", not "dahdi.bash"; because the command "service dahdi start" is looking for a file just called "dahdi". If you run # mv /etc/init.d/dahdi.bash /etc/init.d/dahdi then # service dahdi start should work. You probably also need to run # update-rc.d dahdi defaults to ensure it starts up everytime the computer is booted up. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .
Hello, I was faced with this problem, it is enough to place subdirectory under ./tools installation dahdi when compiling and run make install-config it should work. we must have : mkdir -p / etc / dahdi mkdir -p /etc/modprobe.d install -m644 xpp / genconf_parameters / etc / dahdi / genconf_parameters install -m644 init.conf.sample /etc/dahdi/init.conf install -m644 blacklist.sample /etc/modprobe.d/dahdi-blacklist.conf install -m644 modprobe.conf.sample /etc/modprobe.d/dahdi.conf make -f ./Makefile.legacy top_srcdir =. srcdir =. config make [1]: Entering directory '/usr/src/dahdi-linux-complete-2.11.1+2.11.1/tools' install -D dahdi.init /etc/init.d/dahdi /usr/sbin/update-rc.d dahdi defaults 15 30 DAHDI has-been configured. Le 28/04/2016 16:37, A J Stiles a ?crit :> On Thursday 28 Apr 2016, Mamadou NGOM wrote: >> Hello, >> it doesn't work my dahdi yet .for information, i use debian 8 . >> I put the file dahdi.bash in /etc/init.d and I gave it the permission 755 >> but i have the same error: bash: /etc/init.d/dahdi: No such file or >> directory > You need to name the file just "dahdi", not "dahdi.bash"; because the command > "service dahdi start" is looking for a file just called "dahdi". If you run > # mv /etc/init.d/dahdi.bash /etc/init.d/dahdi > then > # service dahdi start > should work. > > You probably also need to run > # update-rc.d dahdi defaults > to ensure it starts up everytime the computer is booted up. >
<!DOCTYPE html> <html><head> <meta charset="UTF-8"> </head><body><p>Hello,</p><p>I have not resolved my problem.I renamed my dahdi file "mv dahdi.bash dahdi " in the directory /etc/init.d, but it doesn'nt work yet.</p><p>the same error after the command <strong>/etc/init.d/dahdi start</strong><br>-bash: /etc/init.d/dahdi: /bin/sh^M: bad interpreter: No such file or directory<br>serveurvoix:~#</p><p>thank for your help.<br></p><p>best regards</p><p><br>> Le 28 avril 2016 à 16:37, A J Stiles <asterisk_list@earthshod.co.uk> a écrit :<br>> <br>> <br>> On Thursday 28 Apr 2016, Mamadou NGOM wrote:<br>> > Hello,<br>> > it doesn't work my dahdi yet .for information, i use debian 8 .<br>> > I put the file dahdi.bash in /etc/init.d and I gave it the permission 755<br>> > but i have the same error: bash: /etc/init.d/dahdi: No such file or<br>> > directory<br>> <br>> You need to name the file just "dahdi", not "dahdi.bash"; because the command <br>> "service dahdi start" is looking for a file just called "dahdi". If you run<br>> # mv /etc/init.d/dahdi.bash /etc/init.d/dahdi<br>> then<br>> # service dahdi start<br>> should work.<br>> <br>> You probably also need to run<br>> # update-rc.d dahdi defaults<br>> to ensure it starts up everytime the computer is booted up.<br>> <br>> -- <br>> AJS<br>> <br>> Note: Originating address only accepts e-mail from list! If replying off-<br>> list, change address to asterisk1list at earthshod dot co dot uk .<br></p><p><br></p><div class="io-ox-signature"><p>Mamadou NGOM</p><p>Ingénieur Télécommunications & Réseaux</p><p>Mobile: 06 72 45 23 03</p><p>Skype: Mamadou Numericap</p><p>NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. <br>siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. <a href="mailto:mail%3Afinance@numericap.com">mail: finance@numericap.com</a><br>Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :<a>04.42.73.88.52</a> <br></p></div></body></html>
*** THIS IS NOT WHERE YOUR REPLY BELONGS *** On Friday 29 Apr 2016, Mamadou NGOM wrote:> Hello, > I have not resolved my problem.I renamed my dahdi file "mv dahdi.bash > dahdi " in the directory /etc/init.d, but it doesn'nt work yet. the same > error after the command /etc/init.d/dahdi start > -bash: /etc/init.d/dahdi: /bin/sh^M: bad interpreter: No such file or > directory serveurvoix:~# > thank for your help. > best regardsNo. "mv dahdi.bash dahdi" was the whole command to rename the file. The file needs just to be called "dahdi" (without the speech marks) in the folder "/etc/init.d" (without the speech marks). If you have copied the file through Windows, the line endings may have become corrupted (I noticed a ^M in your error report). If so, you should run # hd dahdi | grep 0d to check. If you get any output, this indicates that Windows-style line- endings are present. To fix this, you can use # mv dahdi dahdi.0 # tr -d "\015" < dahdi.0 > dahdi # rm dahdi.0 after which sequence of commands, you should find that running # hd dahdi | grep 0d produces no output. And then when you type # service dahdi start then you should find DAHDI starting up. If so, then don't forget to run # update-rc.d dahdi defaults to ensure DAHDI gets started at bootup from next time onwards. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk .
<!DOCTYPE html> <html><head> <meta charset="UTF-8"> </head><body><p><br></p><p>Hello,</p><p>It runs .I can use meetme application now.You can see the result after the command:</p><p><em>/etc/init.d/dahdi restart</em><br><em>Unloading DAHDI hardware modules: done</em><br><em>Loading DAHDI hardware modules:</em></p><p><em>Running dahdi_cfg: .</em><br><em>serveurvoix:/#</em><br></p><p>It runs after doing that command "make install-config" in the folder /usr/src/asterisk/dahdi/tools.</p><p>Thanks</p><blockquote type="cite"><p>Le 29 avril 2016 à 09:31, Yves <ybaesa@dm2it.com> a écrit :<br><br><br>Hello,<br>I was faced with this problem, it is enough to place<br>subdirectory under ./tools installation dahdi when compiling and<br>run make install-config it should work.<br><br>we must have :<br>mkdir -p / etc / dahdi<br>mkdir -p /etc/modprobe.d<br>install -m644 xpp / genconf_parameters / etc / dahdi / genconf_parameters<br>install -m644 init.conf.sample /etc/dahdi/init.conf<br>install -m644 blacklist.sample /etc/modprobe.d/dahdi-blacklist.conf<br>install -m644 modprobe.conf.sample /etc/modprobe.d/dahdi.conf<br>make -f ./Makefile.legacy top_srcdir =. srcdir =. config<br>make [1]: Entering directory <br>'/usr/src/dahdi-linux-complete-2.11.1+2.11.1/tools'<br>install -D dahdi.init /etc/init.d/dahdi<br>/usr/sbin/update-rc.d dahdi defaults 15 30<br>DAHDI has-been configured.<br><br>Le 28/04/2016 16:37, A J Stiles a écrit :</p><blockquote type="cite"><p>On Thursday 28 Apr 2016, Mamadou NGOM wrote:</p></blockquote><p>>> Hello,>> it doesn't work my dahdi yet .for information, i use debian 8 .<br>>> I put the file dahdi.bash in /etc/init.d and I gave it the permission 755<br>>> but i have the same error: bash: /etc/init.d/dahdi: No such file or<br>>> directory</p><blockquote type="cite"><p>You need to name the file just "dahdi", not "dahdi.bash"; because the command<br>"service dahdi start" is looking for a file just called "dahdi". If you run<br># mv /etc/init.d/dahdi.bash /etc/init.d/dahdi<br>then<br># service dahdi start<br>should work.<br><br>You probably also need to run<br># update-rc.d dahdi defaults<br>to ensure it starts up everytime the computer is booted up.</p></blockquote><p><br>-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> http://www.asterisk.org/hello<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> http://lists.digium.com/mailman/listinfo/asterisk-users</p></blockquote><p><br></p><div class="io-ox-signature"><p>Mamadou NGOM</p><p>Ingénieur Télécommunications & Réseaux</p><p>Mobile: 06 72 45 23 03</p><p>Skype: Mamadou Numericap</p><p>NumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. <br>siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. <a href="mailto:mail%3Afinance@numericap.com">mail: finance@numericap.com</a><br>Centre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :<a>04.42.73.88.52</a> <br></p></div></body></html>
On Fri, Apr 29, 2016 at 09:38:10AM +0200, Mamadou NGOM wrote:> Hello, > > I have not resolved my problem.I renamed my dahdi file "mv dahdi.bash > dahdi " in the directory /etc/init.d, but it doesn'nt work yet. > > the same error after the command /etc/init.d/dahdi start > -bash: /etc/init.d/dahdi: /bin/sh^M: bad interpreter: No such file or > directoryThis is a DOS-formatted text file. A '#!' at the beginning of the line is handed over to the Linux kernel, which takes the rest of first line (up to the first newline character) as the interpreter of the script. This first line here is '/bin/sh\r', because this file is a DOS-formatted text file, with lines that end in '\r\n' instead of '\n' as in UNIX text files. sed -i -e 's/\r$//' /etc/init.d/dahdi And then again, do you really need a DAHDI init script? See my previous message: http://lists.digium.com/pipermail/asterisk-users/2016-April/288968.html -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com