Browse Source

TT#24097 Remove unused shell variables

Change-Id: I529a493b2c8d3573d1b848c3fffa951bb8fc60c9
changes/19/16719/5
Guillem Jover 8 years ago
parent
commit
33518213c0
2 changed files with 2 additions and 9 deletions
  1. +0
    -7
      debian/ngcp-rtpengine-recording-daemon.init
  2. +2
    -2
      el/rtpengine.init

+ 0
- 7
debian/ngcp-rtpengine-recording-daemon.init View File

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


+ 2
- 2
el/rtpengine.init View File

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