[sr-dev] git:3.1: kamctl: exit 1 in case of lcr commands
Daniel-Constantin Mierla
miconda at gmail.com
Wed Oct 6 15:29:09 CEST 2010
Module: sip-router
Branch: 3.1
Commit: 738646b73246062196939b0105230d744ff326e7
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=738646b73246062196939b0105230d744ff326e7
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Wed Oct 6 15:28:18 2010 +0200
kamctl: exit 1 in case of lcr commands
- reported by Inaki Baz Castillo
---
utils/kamctl/kamctl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 5108420..2ec550a 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -1117,7 +1117,7 @@ lcr() {
case $1 in
show_gws)
merr "command disabled"
- exit;
+ exit 1
require_dbengine
mecho "lcr gateways"
QUERY="select * FROM $GW_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_GW_GRPID_COLUMN; "
@@ -1125,7 +1125,7 @@ lcr() {
;;
show_routes)
merr "command disabled"
- exit;
+ exit 1
require_dbengine
mecho "lcr routes"
QUERY="select * FROM $LCR_TABLE ORDER BY $LCR_ID_COLUMN, $LCR_PREFIX_COLUMN; "
@@ -1133,17 +1133,17 @@ lcr() {
;;
reload)
merr "command disabled"
- exit;
+ exit 1
$CTLCMD lcr.reload
;;
dump_gws)
merr "command disabled"
- exit;
+ exit 1
$CTLCMD lcr.dump_gws
;;
dump_routes)
merr "command disabled"
- exit;
+ exit 1
$CTLCMD lcr.dump_lcrs
;;
eval_weights)
More information about the sr-dev
mailing list