telephony/net/rtpengine/files/rtpengine.hotplug
Sebastian Kemper ff67aa6f79 rtpengine: new package
rtpengine is a proxy for RTP traffic. It has lots of capabilities,
including transcoding, in-kernel forwarding and SRTP transport, to name
a few.

Packaging:

  1. regular rtpengine
  2. rtpengine variant without transcoding support (smaller dependency
     tree)
  3. recording daemon
  4. kernel module
  5. iptables module

Simple init scripts (procd) are included, plus a hotplug script for
rtpengine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-05-04 20:01:01 +02:00

23 lines
430 B
Bash

#!/bin/sh
[ "$ACTION" = ifup ] || exit 0
NAME=rtpengine
COMMAND=/etc/init.d/$NAME
LOGGER="/usr/bin/logger -t hotplug"
$COMMAND enabled || exit 0
. /lib/functions.sh
config_load $NAME
config_get_bool enabled global enabled 0
[ $enabled -eq 0 ] && exit 0
config_get hotplug_iface hotplug interface
[ "$INTERFACE" = "$hotplug_iface" ] && {
$LOGGER "Restarting $NAME due to \"$ACTION\" of \"$INTERFACE\""
$COMMAND restart
}