summaryrefslogtreecommitdiff
path: root/dahdi.init
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-12-11 22:45:02 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2008-12-11 22:45:02 +0000
commit52a1d4a40835af3310ed2996641053df5e6a0ec5 (patch)
treef3531468af85f9b5e857c7e75f3f13129411c895 /dahdi.init
parent63c6be0e49001a6f2d7fdcac20876666039a76ef (diff)
Drop the "redhat" action at the 'stop' case for now:
RHEL4's 'action' only works with programs and not with functions. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@5514 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi.init')
-rwxr-xr-xdahdi.init14
1 files changed, 5 insertions, 9 deletions
diff --git a/dahdi.init b/dahdi.init
index 0805f33..6c352cc 100755
--- a/dahdi.init
+++ b/dahdi.init
@@ -224,15 +224,11 @@ case "$1" in
stop)
# Unload drivers
#shutdown_dynamic # FIXME: needs test from someone with dynamic spans
- if [ $system = debian ]; then
- echo -n "Unloading DAHDI hardware modules: "
- if unload_module dahdi; then
- echo -n "done"
- else
- echo -n "error"
- fi
- elif [ $system = redhat ]; then
- action "Unloading DAHDI hardware modules: " unload_module dahdi
+ echo -n "Unloading DAHDI hardware modules: "
+ if unload_module dahdi; then
+ echo -n "done"
+ else
+ echo -n "error"
fi
if [ "$LOCKFILE" != '' ]; then
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE