diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-12-11 22:45:02 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-12-11 22:45:02 +0000 |
commit | 52a1d4a40835af3310ed2996641053df5e6a0ec5 (patch) | |
tree | f3531468af85f9b5e857c7e75f3f13129411c895 /dahdi.init | |
parent | 63c6be0e49001a6f2d7fdcac20876666039a76ef (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-x | dahdi.init | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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 |