Module: sip-router
Branch: master
Commit: 9b553a5c25da040569d385039c6f24a9e0622d9f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9b553a5…
Author: Iñaki Baz Castillo <ibc(a)aliax.net>
Committer: Iñaki Baz Castillo <ibc(a)aliax.net>
Date: Wed Aug 3 18:29:55 2011 +0200
debian: If RUN=no in /etc/default/kamailio then return 0 isntead of LSB compliant error
codes (if not, dpkg returns error in the instalation as kamailio init script is called
automatically to start when installed).
---
pkg/kamailio/deb/debian/kamailio.init | 11 +----------
pkg/kamailio/deb/lenny/kamailio.init | 11 +----------
pkg/kamailio/deb/lucid/kamailio.init | 11 +----------
pkg/kamailio/deb/squeeze/kamailio.init | 11 +----------
4 files changed, 4 insertions(+), 40 deletions(-)
diff --git a/pkg/kamailio/deb/debian/kamailio.init
b/pkg/kamailio/deb/debian/kamailio.init
index 0490282..0df2b84 100644
--- a/pkg/kamailio/deb/debian/kamailio.init
+++ b/pkg/kamailio/deb/debian/kamailio.init
@@ -107,16 +107,7 @@ fi
if [ "$RUN_KAMAILIO" != "yes" ]; then
echo "$DESC not yet configured. Edit $DEFAULTS first."
- case "$1" in
- status)
- # LSB - 4: program or service status is unknown.
- exit 4
- ;;
- *)
- # LSB - 6: program is not configured.
- exit 6
- ;;
- esac
+ exit 0
fi
diff --git a/pkg/kamailio/deb/lenny/kamailio.init b/pkg/kamailio/deb/lenny/kamailio.init
index 0490282..0df2b84 100644
--- a/pkg/kamailio/deb/lenny/kamailio.init
+++ b/pkg/kamailio/deb/lenny/kamailio.init
@@ -107,16 +107,7 @@ fi
if [ "$RUN_KAMAILIO" != "yes" ]; then
echo "$DESC not yet configured. Edit $DEFAULTS first."
- case "$1" in
- status)
- # LSB - 4: program or service status is unknown.
- exit 4
- ;;
- *)
- # LSB - 6: program is not configured.
- exit 6
- ;;
- esac
+ exit 0
fi
diff --git a/pkg/kamailio/deb/lucid/kamailio.init b/pkg/kamailio/deb/lucid/kamailio.init
index 0490282..0df2b84 100644
--- a/pkg/kamailio/deb/lucid/kamailio.init
+++ b/pkg/kamailio/deb/lucid/kamailio.init
@@ -107,16 +107,7 @@ fi
if [ "$RUN_KAMAILIO" != "yes" ]; then
echo "$DESC not yet configured. Edit $DEFAULTS first."
- case "$1" in
- status)
- # LSB - 4: program or service status is unknown.
- exit 4
- ;;
- *)
- # LSB - 6: program is not configured.
- exit 6
- ;;
- esac
+ exit 0
fi
diff --git a/pkg/kamailio/deb/squeeze/kamailio.init
b/pkg/kamailio/deb/squeeze/kamailio.init
index 0490282..0df2b84 100644
--- a/pkg/kamailio/deb/squeeze/kamailio.init
+++ b/pkg/kamailio/deb/squeeze/kamailio.init
@@ -107,16 +107,7 @@ fi
if [ "$RUN_KAMAILIO" != "yes" ]; then
echo "$DESC not yet configured. Edit $DEFAULTS first."
- case "$1" in
- status)
- # LSB - 4: program or service status is unknown.
- exit 4
- ;;
- *)
- # LSB - 6: program is not configured.
- exit 6
- ;;
- esac
+ exit 0
fi