summaryrefslogtreecommitdiff
path: root/zaptel.init
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-04 22:31:41 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-04 22:31:41 +0000
commit12657046ce0ffb89b6a656ecaaf86282511adcf5 (patch)
tree6161950547e842054a4460b1c44c8a062adaf7f1 /zaptel.init
parent4f4ce556b7de7923a1ceed8b60e3898eb7c0ba5f (diff)
Init script clean-up; enable module-specific parameters
(though modprobe.conf is the recomended method to pass arguments) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2494 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.init')
-rw-r--r--zaptel.init6
1 files changed, 4 insertions, 2 deletions
diff --git a/zaptel.init b/zaptel.init
index 42cf4c4..bd19142 100644
--- a/zaptel.init
+++ b/zaptel.init
@@ -166,7 +166,8 @@ case "$1" in
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 @@ case "$1" in
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