[svn-commits] tzafrir: tools/trunk r5514 - /tools/trunk/dahdi.init

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 11 16:45:02 CST 2008


Author: tzafrir
Date: Thu Dec 11 16:45:02 2008
New Revision: 5514

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5514
Log:
Drop the "redhat" action at the 'stop' case for now: 
RHEL4's 'action' only works with programs and not with functions.

Modified:
    tools/trunk/dahdi.init

Modified: tools/trunk/dahdi.init
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi.init?view=diff&rev=5514&r1=5513&r2=5514
==============================================================================
--- tools/trunk/dahdi.init (original)
+++ tools/trunk/dahdi.init Thu Dec 11 16:45:02 2008
@@ -224,15 +224,11 @@
   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




More information about the svn-commits mailing list