[sr-dev] git:master: kamctl: exit 1 in case of lcr commands

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 7 10:47:49 CEST 2010


Module: sip-router
Branch: master
Commit: 05e8b3010aaa2fa6ba9f7e84dc86607e31f7b127
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=05e8b3010aaa2fa6ba9f7e84dc86607e31f7b127

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
(cherry picked from commit 738646b73246062196939b0105230d744ff326e7)

---

 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