[svn-commits] seanbright: tools/trunk r5074 - /tools/trunk/dahdi.init

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 9 14:00:26 CDT 2008


Author: seanbright
Date: Thu Oct  9 14:00:25 2008
New Revision: 5074

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5074
Log:
Return the appropriate values to indicate if the modules are loaded or not.

Modified:
    tools/trunk/dahdi.init

Modified: tools/trunk/dahdi.init
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi.init?view=diff&rev=5074&r1=5073&r2=5074
==============================================================================
--- tools/trunk/dahdi.init (original)
+++ tools/trunk/dahdi.init Thu Oct  9 14:00:25 2008
@@ -243,7 +243,12 @@
 	RETVAL=$?
 	;;
   status)
-	/usr/sbin/lsdahdi
+	if [ -d /proc/dahdi ]; then
+		/usr/sbin/lsdahdi
+		RETVAL=0
+	else
+		RETVAL=3
+	fi
 	;;
   *)
 	echo "Usage: dahdi {start|stop|restart|status|reload|unload}"




More information about the svn-commits mailing list