summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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