TT#12000 ngcp-rtpengine-daemon.default: add missing TABLE

* ngcp-rtpengine-daemon.postinst: fix checks for missing TABLE

Fix #326

Change-Id: I6d87fbfec55a4d3557824a613f6967478d45e2e8
changes/33/11633/4
Victor Seva 9 years ago
parent 89393e1dfd
commit 77f9e4c310

@ -2,3 +2,4 @@ RUN_RTPENGINE=no
CONFIG_FILE=/etc/rtpengine/rtpengine.conf
# CONFIG_SECTION=rtpengine
PIDFILE=/var/run/ngcp-rtpengine-daemon.pid
TABLE=0

@ -18,7 +18,10 @@ else
. $default || true
fi
if [ "$TABLE" -ge 0 -a -n "$NO_FALLBACK" -a \( "$NO_FALLBACK" = "1" -o "$NO_FALLBACK" = "yes" \) ]; then
if [ -n "$TABLE" ] && [ "$TABLE" -ge 0 ] && \
[ -n "$NO_FALLBACK" ] && \
([ "$NO_FALLBACK" = "1" ] || [ "$NO_FALLBACK" = "yes" ])
then
if lsmod | grep -q $modname || modinfo $modname > /dev/null 2> /dev/null; then
true
else

Loading…
Cancel
Save