summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/zaptel.in
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2007-07-22 08:58:36 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2007-07-22 08:58:36 +0000
commit3122d1afe6f67c93c15b25d42b7f87519862da0d (patch)
treed49dbf7f0eccfe37e5eb2a85ad091d62aa8f42a9 /misc/zaptel/files/zaptel.in
parentMark as deprecated: last release 2000, depends on forbidden port misc/compat3x. (diff)
Update to 1.4.6.
Submitted by: Oleksandr Tymoshenko
Notes
Notes: svn path=/head/; revision=196045
Diffstat (limited to 'misc/zaptel/files/zaptel.in')
-rw-r--r--misc/zaptel/files/zaptel.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/misc/zaptel/files/zaptel.in b/misc/zaptel/files/zaptel.in
index 6420760a61d7..88f072c4ec26 100644
--- a/misc/zaptel/files/zaptel.in
+++ b/misc/zaptel/files/zaptel.in
@@ -18,8 +18,8 @@
kmod_dir=%%PREFIX%%/lib/zaptel
-kmod_load="zaptel.ko qozap.ko tau32pci.ko wcfxo.ko wcfxs.ko wct1xxp.ko wct4xxp.ko wcte11xp.ko"
-kmod_unload="wcte11xp.ko wct4xxp.ko wct1xxp.ko wcfxs.ko wcfxo.ko tau32pci.ko qozap.ko zaptel.ko"
+kmod_load="zaptel.ko qozap.ko tau32pci.ko wcfxo.ko wcfxs.ko wct1xxp.ko wct4xxp.ko wcte11xp.ko wcte12xp.ko"
+kmod_unload="wcte12xp.ko wcte11xp.ko wct4xxp.ko wct1xxp.ko wcfxs.ko wcfxo.ko tau32pci.ko qozap.ko zaptel.ko"
name="zaptel"
rcvar=${name}_enable
@@ -31,7 +31,10 @@ zaptel_start()
echo -n " ${name}"
for kmod in ${kmod_load}
do
- kldload ${kmod_dir}/${kmod} || exit 1
+ if [ -e ${kmod_dir}/${kmod} ]
+ then
+ kldload ${kmod_dir}/${kmod} || exit 1
+ fi
done
%%PREFIX%%/bin/ztcfg
}
@@ -41,7 +44,10 @@ zaptel_stop()
echo -n " ${name}"
for kmod in ${kmod_unload}
do
- kldunload ${kmod}
+ if [ -e ${kmod_dir}/${kmod} ]
+ then
+ kldunload ${kmod}
+ fi
done
}
load_rc_config $name