Module: sip-router Branch: master Commit: 9bacc95d2a0c949e81032dd0cc392dfaa7c0a2c1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9bacc95d...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Wed Oct 24 12:17:30 2012 +0200
kamctl: use kamcmd instead of sercmd
---
utils/kamctl/kamctl | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl index 69cf6a3..f29c543 100755 --- a/utils/kamctl/kamctl +++ b/utils/kamctl/kamctl @@ -60,21 +60,21 @@ else exit -1 fi
-# locate sercmd +# locate kamcmd if [ -z "$SERCMD" ] ; then # try same dir as kamctl - SERCMD="$MYDIR/sercmd" + SERCMD="$MYDIR/kamcmd" if [ ! -f "$SERCMD" -o ! -x "$SERCMD" ] ; then # try standard location installed from sources - SERCMD="/usr/local/sbin/sercmd" + SERCMD="/usr/local/sbin/kamcmd" if [ ! -f "$SERCMD" -o ! -x "$SERCMD" ] ; then # try source tree location - SERCMD="$MYDIR/../sercmd/sercmd" + SERCMD="$MYDIR/../sercmd/kamcmd" if [ ! -f "$SERCMD" -o ! -x "$SERCMD" ] ; then # try locate it with which - SERCMD=`which sercmd` + SERCMD=`which kamcmd` if [ ! -f "$SERCMD" -o ! -x "$SERCMD" ] ; then - mdbg "sercmd tool not found" + mdbg "kamcmd tool not found" fi fi fi @@ -143,9 +143,9 @@ fi ### CTLENGINE #
-require_sercmd() { +require_kamcmd() { if [ -z "$SERCMD" ] ; then - merr "sercmd tool is missing" + merr "kamcmd tool is missing" exit -1 fi } @@ -168,7 +168,7 @@ case $CTLENGINE in fi ;; SER_MI|ser_mi|SERCMD_MI|sercmd_mi|SERCMDMI|sercmdmi) - require_sercmd + require_kamcmd if [ -f "$MYLIBDIR/kamctl.ser_mi" ]; then . "$MYLIBDIR/kamctl.ser_mi" CTLENGINELOADED=1 @@ -177,7 +177,7 @@ case $CTLENGINE in esac
#### ------------------------------------------------- ##### -### Load sercmd interface +### Load kamcmd interface # if [ -f "$MYLIBDIR/kamctl.ser" ]; then . "$MYLIBDIR/kamctl.ser" @@ -2489,7 +2489,7 @@ case $1 in ;;
ser|sercmd) - require_sercmd + require_kamcmd shift $SERCTLCMD "$@" ;;