TT#24097 Remove unused shell variables

Change-Id: I529a493b2c8d3573d1b848c3fffa951bb8fc60c9
changes/19/16719/5
Guillem Jover 8 years ago
parent 19b4df7fb6
commit 33518213c0

@ -14,7 +14,6 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=ngcp-rtpengine-recording-daemon
DESC="RTP/media recording daemon"
TABLE=0
DAEMON=$(which rtpengine-recording)
DEFAULTS=/etc/default/${NAME}
@ -76,12 +75,6 @@ fi
###
if [ -x /usr/sbin/ngcp-virt-identify ]; then
if /usr/sbin/ngcp-virt-identify --type container; then
VIRT="yes"
fi
fi
case "$1" in
start)
set +e

@ -187,7 +187,7 @@ start() {
else
modprobe xt_RTPENGINE
fi
temp=`firewall-cmd --state 2>/dev/null`
firewall-cmd --state 2>/dev/null
if [[ $? == 0 ]]
then
# Using firewalld
@ -240,7 +240,7 @@ stop() {
. "$cachefile"
echo "Unloading module for in-kernel packet forwarding"
echo "del $TABLE" > /proc/rtpengine/control
temp=`firewall-cmd --state 2>/dev/null`
firewall-cmd --state 2>/dev/null
if [[ $? == 0 ]]
then
firewall-cmd --direct --remove-rules ipv4 filter rtpengine

Loading…
Cancel
Save