#! /bin/sh /usr/share/dpatch/dpatch-run ## daemon_color.dpatch by Tzafrir Cohen ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Enable color support even in a daemonized Asterisk. This is ## DP: done by assuming the default value 'xterm' for TERM. ## DP: See upstream bug http://bugs.digium.com/view.php?id=9048 @DPATCH@ diff -urNad asterisk-1.2.15~dfsg~/term.c asterisk-1.2.15~dfsg/term.c --- asterisk-1.2.15~dfsg~/term.c 2005-11-29 20:24:39.000000000 +0200 +++ asterisk-1.2.15~dfsg/term.c 2007-02-13 16:04:31.000000000 +0200 @@ -79,8 +79,8 @@ int termfd = -1, parseokay = 0, i; if (!term) - return 0; - if (!option_console || option_nocolor || !option_nofork) + term="xterm"; + if (option_nocolor) return 0; for (i=0 ;; i++) {