Bug#413543: contrib/scripts/safe_asterisk should explicitly link to a cli

Martin Jürgens martin at gamesplace.info
Mon Mar 5 19:07:28 UTC 2007


Package:  asterisk
Version: 1:1.2.16~dfsg-1

Some Debian based distros (like Ubuntu) have /bin/sh linked to /bin/dash instead of to /bin/bash.

Thus, it would be much more appreciated if contrib/scripts/safe_asterisk said #!/bin/bash instead of #!/bin/sh at the beginning.

An other option would be to use this diff:

--- asterisk-1.2.16~dfsg.orig/contrib/scripts/safe_asterisk
+++ asterisk-1.2.16~dfsg/contrib/scripts/safe_asterisk
@@ -53,7 +53,7 @@
 		if [ "$TTY" != "" ]; then
 			cd /tmp
 			stty sane < /dev/${TTY}
-			${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
+			${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
 		else
 			cd /tmp
 			${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}


But I do not know if that also works with bash.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20070305/c1142c0a/attachment.pgp


More information about the Pkg-voip-maintainers mailing list