1999-01-13 08:20:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# /etc/rc.isdn - isdn4bsd startup script
|
|
|
|
# --------------------------------------
|
|
|
|
#
|
1999-03-08 11:28:45 +00:00
|
|
|
# last edit-date: [Mon Mar 8 12:15:56 1999]
|
1999-01-13 08:20:55 +00:00
|
|
|
#
|
1999-08-28 00:37:10 +01:00
|
|
|
# $FreeBSD$
|
1999-01-13 08:20:55 +00:00
|
|
|
#
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
1999-09-13 16:44:20 +01:00
|
|
|
case ${isdn_enable} in
|
|
|
|
[Yy][Ee][Ss])
|
1999-03-08 11:28:45 +00:00
|
|
|
echo -n 'ISDN subsystem setup:'
|
|
|
|
|
1999-09-13 16:44:20 +01:00
|
|
|
# Terminal type for fullscreen mode, default to syscons driver
|
|
|
|
#
|
1999-01-13 08:20:55 +00:00
|
|
|
isdn_ttype=cons25
|
|
|
|
|
1999-09-13 16:44:20 +01:00
|
|
|
# Check for pcvt driver (VT100/VT220 emulator)
|
|
|
|
#
|
|
|
|
if [ -x /usr/sbin/ispcvt ]; then
|
|
|
|
if /usr/sbin/ispcvt; then
|
1999-01-13 08:20:55 +00:00
|
|
|
isdn_ttype=pcvt25
|
|
|
|
fi
|
|
|
|
fi
|
1999-09-13 16:44:20 +01:00
|
|
|
|
|
|
|
case ${isdn_flags} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
isdn_flags=''
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# Start the isdn daemon
|
|
|
|
#
|
|
|
|
if [ -x /usr/sbin/isdnd ]; then
|
1999-01-13 08:20:55 +00:00
|
|
|
echo -n ' isdnd'
|
1999-09-13 16:44:20 +01:00
|
|
|
case ${isdn_fsdev} in
|
|
|
|
[Nn][Oo] | '')
|
|
|
|
/usr/sbin/isdnd ${isdn_flags}
|
|
|
|
;;
|
|
|
|
*)
|
1999-01-13 08:20:55 +00:00
|
|
|
/usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
|
1999-09-13 16:44:20 +01:00
|
|
|
;;
|
|
|
|
esac
|
1999-01-13 08:20:55 +00:00
|
|
|
fi
|
|
|
|
|
1999-09-13 16:44:20 +01:00
|
|
|
# Start isdntrace
|
|
|
|
#
|
|
|
|
case ${isdn_trace} in
|
|
|
|
[Yy][Ee][Ss])
|
|
|
|
if [ -x /usr/sbin/isdntrace ]; then
|
|
|
|
echo -n ' isdntrace'
|
|
|
|
nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
1999-03-08 11:28:45 +00:00
|
|
|
|
|
|
|
echo '.'
|
1999-09-13 16:44:20 +01:00
|
|
|
;;
|
|
|
|
esac
|