diff options
Diffstat (limited to 'misc/zaptel/files/zaptel.in')
-rw-r--r-- | misc/zaptel/files/zaptel.in | 14 |
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 |