diff options
Diffstat (limited to 'net/zaptel12/files/zaptel.sh')
-rw-r--r-- | net/zaptel12/files/zaptel.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/zaptel12/files/zaptel.sh b/net/zaptel12/files/zaptel.sh new file mode 100644 index 000000000000..ff2753b788ae --- /dev/null +++ b/net/zaptel12/files/zaptel.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +PREFIX=%%PREFIX%% +LIBDIR=${PREFIX}/lib/zaptel + +case "$1" in + start) + /sbin/kldload ${LIBDIR}/zaptel.ko || exit 1 + /sbin/kldload ${LIBDIR}/wcfxo.ko || exit 1 + /usr/sbin/devinfo | /usr/bin/grep -q wcfxo && ${PREFIX}/bin/ztcfg 2> /dev/null + echo -n " zaptel" + ;; + + stop) + /sbin/kldunload wcfxo.ko || exit 1 + /sbin/kldunload zaptel.ko || exit 1 + echo -n " zaptel" + ;; + + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + exit 64 + ;; +esac |