freebsd-ports/net/zaptel12/files/zaptel.sh
Maxim Sobolev 384c7f5526 Call ztcfg after loading drivers to get the card(s) configured properly.
PR:		81697
Submitted by:	Igor Robul <igorr@speechpro.com>
2005-09-30 01:25:58 +00:00

36 lines
841 B
Bash

#!/bin/sh
PREFIX=%%PREFIX%%
LIBDIR=${PREFIX}/lib/zaptel
case "$1" in
start)
/sbin/kldload ${LIBDIR}/zaptel.ko || exit 1
/sbin/kldload ${LIBDIR}/qozap.ko || exit 1
/sbin/kldload ${LIBDIR}/wcfxo.ko || exit 1
/sbin/kldload ${LIBDIR}/wcfxs.ko || exit 1
/sbin/kldload ${LIBDIR}/wct1xxp.ko || exit 1
/sbin/kldload ${LIBDIR}/wct4xxp.ko || exit 1
/sbin/kldload ${LIBDIR}/wcte11xp.ko || exit 1
${PREFIX}/bin/ztcfg
echo -n " zaptel"
;;
stop)
/sbin/kldunload qozap.ko || exit 1
/sbin/kldunload wcfxs.ko || exit 1
/sbin/kldunload wcfxo.ko || exit 1
/sbin/kldunload wct1xxp.ko || exit 1
/sbin/kldunload wct4xxp.ko || exit 1
/sbin/kldunload wcte11xp.ko || exit 1
/sbin/kldunload zaptel.ko || exit 1
echo -n " zaptel"
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac