[svn-commits] tzafrir: branch 1.2 r2494 - /branches/1.2/zaptel.init
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Fri May 4 15:31:42 MST 2007
Author: tzafrir
Date: Fri May 4 17:31:41 2007
New Revision: 2494
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2494
Log:
Init script clean-up; enable module-specific parameters
(though modprobe.conf is the recomended method to pass arguments)
Modified:
branches/1.2/zaptel.init
Modified: branches/1.2/zaptel.init
URL: http://svn.digium.com/view/zaptel/branches/1.2/zaptel.init?view=diff&rev=2494&r1=2493&r2=2494
==============================================================================
--- branches/1.2/zaptel.init (original)
+++ branches/1.2/zaptel.init Fri May 4 17:31:41 2007
@@ -166,7 +166,8 @@
echo "OK"
echo -n "Loading zaptel hardware modules:"
for x in $MODULES; do
- if modprobe ${x} ${ARGS} >& /dev/null; then
+ eval localARGS="\$${x}_ARGS"
+ if modprobe ${x} ${ARGS} ${localARGS} >& /dev/null; then
echo -n " $x"
echo "."
fi
@@ -231,13 +232,14 @@
echo -n "Unloading zaptel hardware drivers:"
unload_module zaptel
RETVAL=$?
+ echo "."
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
;;
unload)
# We don't have zaptel helper, so let's not replicate too much code:
# allow others to use the unload command.
- unload_module zaptel
+ unload_module zaptel
;;
restart)
$0 stop
More information about the svn-commits
mailing list