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
>    directory

This 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:[email protected]
+972-50-7952406           mailto:[email protected]
http://www.xorcom.com

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to