diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2006-08-14 18:13:25 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2006-08-14 18:13:25 +0000 |
commit | a6f51d8865dfb35db027f24d315778853c6cebb4 (patch) | |
tree | cadd07b422ecd3282b5083c476054167c7973cd8 /misc | |
parent | 70e458d4b64d5941cbbcad7dcaa922e84ae07340 (diff) | |
download | ports-a6f51d8865dfb35db027f24d315778853c6cebb4.tar.gz ports-a6f51d8865dfb35db027f24d315778853c6cebb4.zip |
Notes
Diffstat (limited to 'misc')
-rw-r--r-- | misc/zaptel/files/pkg-message.in | 27 | ||||
-rw-r--r-- | misc/zaptel/files/zaptel.in | 49 |
2 files changed, 76 insertions, 0 deletions
diff --git a/misc/zaptel/files/pkg-message.in b/misc/zaptel/files/pkg-message.in new file mode 100644 index 000000000000..2865d845bc78 --- /dev/null +++ b/misc/zaptel/files/pkg-message.in @@ -0,0 +1,27 @@ +------------------------------------------------------------------------------- +IMPORTANT! MAKE SURE TO READ THE FOLLOWING! + +To use the driver set zaptel_enable="YES" in your rc.conf. + +To load the driver run (as root): + +# %%PREFIX%%/etc/rc.d/zaptel start + +To unload it: + +# %%PREFIX%%/etc/rc.d/zaptel stop + +It'll also load the driver automatically when the system is started. + +Report problems to Alexander Timoshenko <gonzo@pbxpress.com>. Please note that +it is still "work in progress" so that your bug reports are welcome and will +help to improve quality of the drivers. + +Great thanks to all companies and individuals who made this driver happen, +including but not limited to, John Todd, Chris Coleman, Alexander Timoshenko, +PBXpress, Inc, Max Khon, LF.net, Luigi Rizzo and others contributors. + +Thanks and enjoy! + +-Maxim +------------------------------------------------------------------------------- diff --git a/misc/zaptel/files/zaptel.in b/misc/zaptel/files/zaptel.in new file mode 100644 index 000000000000..1857078ff0f3 --- /dev/null +++ b/misc/zaptel/files/zaptel.in @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: zaptel +# REQUIRE: NETWORKING +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# zaptel_enable (bool): Set to NO by default. +# Set it to YES to enable zaptel. +# + +. %%RC_SUBR%% + +kmod_dir=%%PREFIX%%/lib/zaptel + +kmod_load="zaptel.ko qozap.ko wcfxo.ko wcfxs.ko wct1xxp.ko wct4xxp.ko wcte11xp.ko" +kmod_unload="wcte11xp.ko wct4xxp.ko wct1xxp.ko wcfxs.ko wcfxo.ko qozap.ko zaptel.ko" +name="zaptel" +rcvar=${name}_enable + +start_cmd="zaptel_start" +stop_cmd="zaptel_stop" + +zaptel_start() +{ + echo -n " ${name}" + for kmod in ${kmod_load} + do + kldload ${kmod_dir}/${kmod} + done +} + +zaptel_stop() +{ + echo -n " ${name}" + for kmod in ${kmod_unload} + do + kldunload ${kmod} + done +} +load_rc_config $name + +: ${zaptel_enable="NO"} + +run_rc_command "$1" |