summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-03-01 20:56:49 +0000
committerShaun Ruffell <sruffell@digium.com>2010-03-01 20:56:49 +0000
commitf552f2d2f039c25b2ab3ffb50e5d9e86dab1cd07 (patch)
tree35700f4a564986779f6527c260c9e1896c8673e8
parent73fd37737f3bbd2a70b01d62afc508c675370cb5 (diff)
dahdi.init: Add support for SuSE.
The init script would fail on SuSE without this change, since it would look for the redhat init script functions. DAHDI-437. (closes issue #16761) Reported by: oej Patch by: jparker git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8194 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-xdahdi.init5
1 files changed, 5 insertions, 0 deletions
diff --git a/dahdi.init b/dahdi.init
index 91ae44e..3460c44 100755
--- a/dahdi.init
+++ b/dahdi.init
@@ -53,6 +53,11 @@ if [ -f /etc/gentoo-release ]; then
system=debian
fi
+if [ -f /etc/SuSE-release -o -f /etc/novell-release ]
+then
+ system=debian
+fi
+
# Source function library.
if [ $system = redhat ]; then
. $initdir/functions || exit 0