head	1.25;
access;
symbols
	RELENG_7_4_0_RELEASE:1.23.2.1.8.1
	RELENG_7_4:1.23.2.1.0.8
	RELENG_7_4_BP:1.23.2.1
	RELENG_7_3_0_RELEASE:1.23.2.1.6.1
	RELENG_7_3:1.23.2.1.0.6
	RELENG_7_3_BP:1.23.2.1
	RELENG_7_2_0_RELEASE:1.23.2.1.4.1
	RELENG_7_2:1.23.2.1.0.4
	RELENG_7_2_BP:1.23.2.1
	RELENG_7_1_0_RELEASE:1.23.2.1.2.1
	RELENG_6_4_0_RELEASE:1.20.2.3.2.1
	RELENG_7_1:1.23.2.1.0.2
	RELENG_7_1_BP:1.23.2.1
	RELENG_6_4:1.20.2.3.0.2
	RELENG_6_4_BP:1.20.2.3
	RELENG_7_0_0_RELEASE:1.23.4.1
	RELENG_6_3_0_RELEASE:1.20.2.2
	RELENG_7_0:1.23.0.4
	RELENG_7_0_BP:1.23
	RELENG_6_3:1.20.2.2.0.2
	RELENG_6_3_BP:1.20.2.2
	RELENG_7:1.23.0.2
	RELENG_7_BP:1.23
	RELENG_6_2_0_RELEASE:1.20
	RELENG_6_2:1.20.0.8
	RELENG_6_2_BP:1.20
	RELENG_5_5_0_RELEASE:1.18.2.1
	RELENG_5_5:1.18.2.1.0.6
	RELENG_5_5_BP:1.18.2.1
	RELENG_6_1_0_RELEASE:1.20
	RELENG_6_1:1.20.0.6
	RELENG_6_1_BP:1.20
	RELENG_6_0_0_RELEASE:1.20
	RELENG_6_0:1.20.0.4
	RELENG_6_0_BP:1.20
	RELENG_6:1.20.0.2
	RELENG_6_BP:1.20
	RELENG_5_4_0_RELEASE:1.18.2.1
	RELENG_5_4:1.18.2.1.0.4
	RELENG_5_4_BP:1.18.2.1
	RELENG_5_3_0_RELEASE:1.18.2.1
	RELENG_5_3:1.18.2.1.0.2
	RELENG_5_3_BP:1.18.2.1
	RELENG_5:1.18.0.2
	RELENG_5_BP:1.18
	RELENG_5_2_1_RELEASE:1.15
	RELENG_5_2_0_RELEASE:1.15
	RELENG_5_2:1.15.0.2
	RELENG_5_2_BP:1.15
	RELENG_5_1_0_RELEASE:1.14
	RELENG_5_1:1.14.0.2
	RELENG_5_1_BP:1.14
	RELENG_5_0_0_RELEASE:1.12
	RELENG_5_0:1.12.0.2
	RELENG_5_0_BP:1.12
	head_20020621:1.1.1.2
	head_20010615:1.1.1.1
	NETBSD:1.1.1
	old_RELENG_4_6_1_RELEASE:1.5.2.5
	old_RELENG_4_6_0_RELEASE:1.5.2.5
	old_RELENG_4_6:1.5.2.5.0.6
	old_RELENG_4_6_BP:1.5.2.5
	old_RELENG_4_5_0_RELEASE:1.5.2.5
	old_RELENG_4_5:1.5.2.5.0.4
	old_RELENG_4_5_BP:1.5.2.5
	old_RELENG_4_4_0_RELEASE:1.5.2.5
	old_RELENG_4_4:1.5.2.5.0.2
	old_RELENG_4_4_BP:1.5.2.5
	old_RELENG_4_3_0_RELEASE:1.5.2.3
	old_RELENG_4_3:1.5.2.3.0.2
	old_RELENG_4_3_BP:1.5.2.3
	old_RELENG_4_2_0_RELEASE:1.5.2.1
	old_RELENG_4_1_1_RELEASE:1.5
	old_PRE_SMPNG:1.5
	old_RELENG_4_1_0_RELEASE:1.5
	old_RELENG_3_5_0_RELEASE:1.1.2.2
	old_RELENG_4_0_0_RELEASE:1.5
	old_RELENG_4:1.5.0.2
	old_RELENG_4_BP:1.5
	old_RELENG_3_4_0_RELEASE:1.1.2.2
	old_RELENG_3_3_0_RELEASE:1.1.2.1
	old_RELENG_3_2_PAO:1.1.0.4
	old_RELENG_3_2_PAO_BP:1.1
	old_RELENG_3_2_0_RELEASE:1.1
	old_RELENG_3_1_0_RELEASE:1.1
	old_RELENG_3:1.1.0.2
	old_RELENG_3_BP:1.1;
locks; strict;
comment	@# @;


1.25
date	2008.05.26.10.39.46;	author bz;	state dead;
branches;
next	1.24;

1.24
date	2007.12.08.07.20.22;	author dougb;	state Exp;
branches;
next	1.23;

1.23
date	2007.04.02.22.53.07;	author des;	state Exp;
branches
	1.23.2.1
	1.23.4.1;
next	1.22;

1.22
date	2007.03.30.18.36.45;	author mtm;	state Exp;
branches;
next	1.21;

1.21
date	2006.05.17.09.33.06;	author phk;	state Exp;
branches;
next	1.20;

1.20
date	2005.01.16.03.12.03;	author obrien;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2004.10.07.13.55.26;	author mtm;	state Exp;
branches;
next	1.18;

1.18
date	2004.03.08.12.25.05;	author pjd;	state Exp;
branches
	1.18.2.1;
next	1.17;

1.17
date	2004.01.17.10.40.45;	author mtm;	state Exp;
branches;
next	1.16;

1.16
date	2004.01.17.10.16.38;	author mtm;	state Exp;
branches;
next	1.15;

1.15
date	2003.07.15.12.39.37;	author mtm;	state Exp;
branches;
next	1.14;

1.14
date	2003.04.18.17.55.05;	author mtm;	state Exp;
branches;
next	1.13;

1.13
date	2003.01.25.23.03.48;	author mtm;	state Exp;
branches;
next	1.12;

1.12
date	2002.10.12.10.31.31;	author schweikh;	state Exp;
branches;
next	1.11;

1.11
date	2002.09.06.16.18.05;	author gordon;	state Exp;
branches;
next	1.10;

1.10
date	2002.06.13.22.14.36;	author gordon;	state Exp;
branches;
next	1.9;

1.9
date	2001.05.19.08.17.35;	author schweikh;	state Exp;
branches;
next	1.8;

1.8
date	2001.05.14.20.51.10;	author schweikh;	state Exp;
branches;
next	1.7;

1.7
date	2001.04.24.20.01.25;	author schweikh;	state Exp;
branches;
next	1.6;

1.6
date	2000.10.08.19.18.24;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	99.09.13.15.44.18;	author sheldonh;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	99.08.27.23.23.44;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	99.08.25.16.01.35;	author sheldonh;	state Exp;
branches;
next	1.2;

1.2
date	99.03.08.11.28.45;	author hm;	state Exp;
branches;
next	1.1;

1.1
date	99.01.13.08.20.55;	author hm;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.23.2.1
date	2008.01.28.07.55.44;	author dougb;	state Exp;
branches
	1.23.2.1.2.1
	1.23.2.1.4.1
	1.23.2.1.6.1
	1.23.2.1.8.1;
next	1.23.2.2;

1.23.2.2
date	2012.02.14.10.17.30;	author dougb;	state Exp;
branches;
next	1.23.2.3;

1.23.2.3
date	2012.11.17.08.01.21;	author svnexp;	state Exp;
branches;
next	;

1.23.2.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.23.2.1.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.23.2.1.8.2;

1.23.2.1.8.2
date	2012.11.17.08.16.37;	author svnexp;	state Exp;
branches;
next	;

1.23.4.1
date	2008.01.28.07.58.31;	author dougb;	state Exp;
branches;
next	;

1.20.2.1
date	2007.05.15.08.58.05;	author mtm;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2007.05.24.16.14.37;	author des;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2008.01.28.08.22.32;	author dougb;	state Exp;
branches
	1.20.2.3.2.1;
next	1.20.2.4;

1.20.2.4
date	2012.11.17.07.39.07;	author svnexp;	state Exp;
branches;
next	;

1.20.2.3.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.18.2.1
date	2004.10.10.09.50.53;	author mtm;	state Exp;
branches;
next	;

1.5.2.1
date	2000.10.30.10.40.11;	author obrien;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2001.03.06.01.58.45;	author obrien;	state Exp;
branches;
next	1.5.2.3;

1.5.2.3
date	2001.03.06.02.21.59;	author obrien;	state Exp;
branches;
next	1.5.2.4;

1.5.2.4
date	2001.05.22.18.43.48;	author schweikh;	state Exp;
branches;
next	1.5.2.5;

1.5.2.5
date	2001.05.22.18.46.53;	author schweikh;	state Exp;
branches;
next	;

1.1.1.1
date	2001.06.16.07.16.14;	author obrien;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2002.06.21.19.07.21;	author obrien;	state Exp;
branches;
next	;

1.1.2.1
date	99.08.29.14.18.56;	author peter;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	99.11.16.17.54.31;	author joe;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re
@
text
@#!/bin/sh
#
# $FreeBSD: src/etc/rc.d/isdnd,v 1.24 2007/12/08 07:20:22 dougb Exp $
#
# Mostly based on original script (/etc/rc.isdn) written by  Hellmuth Michaelis
#

# PROVIDE: isdnd
# REQUIRE: netif FILESYSTEMS cleanvar
# KEYWORD: nojail

. /etc/rc.subr

name="isdnd"
rcvar=`set_rcvar isdn`
pidfile="/var/run/${name}.pid"
command="/usr/sbin/isdnd"
start_cmd="isdnd_start"

isdnd_start()
{
	echo -n 'ISDN subsystem setup:'

	# Start isdnd
	#
	echo -n ' isdnd'
	case ${isdn_fsdev} in
	[Nn][Oo] | '')
		/usr/sbin/isdnd ${isdn_flags}
		;;
	*)
		# Change vidmode of ${isdn_fsdev}
		#
		case ${isdn_screenflags} in
		[Nn][Oo])
			;;
		*)
			/usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
			;;
		esac

		/usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
		;;
	esac

	# Start isdntrace
	#
	if checkyesno isdn_trace; then
		echo -n ' isdntrace'
		nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
	fi
	echo '.'
}

load_rc_config $name
run_rc_command "$1"
@


1.24
log
@Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files
with theirs, so this information doesn't need to be in the live file.
Having it in our CVS history is enough.
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.23
log
@Add a dummy script, FILESYSTEMS, which depends on root and mountcritlocal
and takes over mountcritlocal's role as the early / late divider.  This
makes it far easier to add rc scripts which need to run early, such as a
startup script for zfs, which is right around the corner.

This change should be a no-op; I have verified that the only change in
rcorder's output is the insertion of FILESYSTEMS immediately after
mountcritlocal.

MFC after:	3 weeks
@
text
@a2 1
# $NetBSD: isdnd,v 1.9 2002/04/10 23:37:13 martin Exp $
@


1.23.4.1
log
@MFC the purely cosmetic changes, including removal of $NetBSD$ Ids,
a few spurious #'s, an empty REQUIRE, and a never-used KEYWORD.

Approved by:	re (kensmith)
@
text
@d3 1
@


1.23.2.1
log
@MFC the purely cosmetic changes, including removal of $NetBSD$ Ids,
a few spurious #'s, an empty REQUIRE, and a never-used KEYWORD.
@
text
@d3 1
@


1.23.2.2
log
@SVN rev 231656 on 2012-02-14 10:17:30Z by dougb

MFC r230099:

Change rcvar= assignments to the literal values set_rcvar
would have returned. This will slightly reduce boot time,
and help in diff reduction to HEAD.
@
text
@d15 1
a15 1
rcvar="isdn_enable"
@


1.23.2.3
log
@Switch importer
@
text
@d3 1
a3 1
# $FreeBSD: stable/7/etc/rc.d/isdnd 231656 2012-02-14 10:17:30Z dougb $
@


1.23.2.1.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.8.2
log
@Switch importer
@
text
@d3 1
a3 1
# $FreeBSD: releng/7.4/etc/rc.d/isdnd 175736 2008-01-28 07:55:44Z dougb $
@


1.23.2.1.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.23.2.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22
log
@Some rc.d commands (such as stop|restart etc.) won't automagically work
if we don't explicitly set the name of the executable program.

PR: conf/104408
@
text
@d10 1
a10 1
# REQUIRE: netif mountcritlocal cleanvar
@


1.21
log
@Send the pcvt(4) driver off to retirement.
@
text
@d18 1
@


1.20
log
@"REQUIRE: cleanvar" for all RC's writing into /var/run.
@
text
@a23 10
	# Check for pcvt driver (VT100/VT220 emulator)
	#
	if [ -x /usr/sbin/ispcvt ]; then
		if /usr/sbin/ispcvt; then
			# No vidcontrol if we are using pcvt
			#
			isdn_screenflags=NO
		fi
	fi

@


1.20.2.1
log
@MFC: 1.22

date: 2007/03/30 18:36:45;  author: mtm;  state: Exp;  lines: +1 -0
Some rc.d commands (such as stop|restart etc.) won't automagically work
if we don't explicitly set the name of the executable program.

PR: conf/104408
@
text
@a17 1
command="/usr/sbin/isdnd"
@


1.20.2.2
log
@MFC: add FILESYSTEMS
@
text
@d10 1
a10 1
# REQUIRE: netif FILESYSTEMS cleanvar
@


1.20.2.3
log
@MFC the purely cosmetic changes, including removal of $NetBSD$ Ids,
a few spurious #'s, an empty REQUIRE, and a never-used KEYWORD.
@
text
@d3 1
@


1.20.2.4
log
@Switch importer
@
text
@d3 1
a3 1
# $FreeBSD: stable/6/etc/rc.d/isdnd 175742 2008-01-28 08:22:33Z dougb $
@


1.20.2.3.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.19
log
@Remove the requirement for the FreeBSD keyword as it no longer
makes any sense.

Discussed with: dougb, brooks
MFC after: 3 days
@
text
@d10 1
a10 1
# REQUIRE: netif mountcritlocal
@


1.18
log
@Mark scripts as not usable inside a jail by adding keyword 'nojail'.

Some suggestions from:	rwatson, Ruben de Groot <mail25@@bzerk.org>
@
text
@d11 1
a11 1
# KEYWORD: FreeBSD nojail
@


1.18.2.1
log
@RCS file: /home/ncvs/src/etc/rc,v
----------------------------
revision 1.335
date: 2004/10/08 14:23:49;  author: mtm;  state: Exp;  lines: +0 -1
Remove an unused variable.

Submitted by: Pawel Worach <pawel.worach@@telia.com>
----------------------------
revision 1.334
date: 2004/10/07 13:55:25;  author: mtm;  state: Exp;  lines: +1 -1
Remove the requirement for the FreeBSD keyword as it no longer
makes any sense.

Discussed with: dougb, brooks
MFC after: 3 days
=============================================================================
RCS file: /home/ncvs/src/etc/rc.d/nsswitch,v
----------------------------
revision 1.4
date: 2004/09/16 17:03:12;  author: keramida;  state: Exp;  lines: +1 -1
Fix requirement of `network' to `NETWORK' because the former isn't
provided by any rc.d script.

Approved by:	mtm
=============================================================================
RCS file: /home/ncvs/src/etc/rc.d/pflog,v
----------------------------
revision 1.3
date: 2004/09/16 17:04:20;  author: keramida;  state: Exp;  lines: +1 -1
We don't have any providers of `beforenetlkm' in FreeBSD.  Remove the
dependency to it from our rc.d scripts.

Approved by:	mtm
=============================================================================

Approved by: re/scottl
@
text
@d11 1
a11 1
# KEYWORD: nojail
@


1.17
log
@Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, remove
NetBSD specific stuff (which made our scripts more complicated
than necessary).

The NetBSD ident string will be left intact, both for history and
also incase we wish to pull in future versions.
@
text
@d11 1
a11 1
# KEYWORD: FreeBSD
@


1.16
log
@Luke Mewburn has indicated that they (NetBSD) are not interested
in keeping the scripts under rc.d in sync with us. So, begin removal
of NetBSD specific stuff (which made our scripts more complicated
than necessary), starting with the NetBSD KEYWORD.
@
text
@d18 1
a18 10

case ${OSTYPE} in
FreeBSD)
	start_cmd="isdnd_start"
	;;
NetBSD)
	command="/usr/sbin/${name}"
	required_files="/etc/isdn/${name}.rc"
	;;
esac
@


1.15
log
@Move a period out of an if... clause. The period terminates the
line and must always appear on the line.

Submitted by:	netchild
@
text
@d11 1
a11 1
# KEYWORD: FreeBSD NetBSD
@


1.14
log
@o Hook the new files up to the build.
o Make sure all the scripts reference rc.d/netif and not rc.d/network1

Approved by:	markm (mentor)
@
text
@a69 1
		echo '.'
d71 1
@


1.13
log
@Start isdnd before ppp for those folks who use ppp-over-isdn.

Approved by: markm (mentor)
@
text
@d10 1
a10 1
# REQUIRE: network1 mountcritlocal
@


1.12
log
@Fix style bugs:
* Space -> tabs conversion.
* Removed blanks before semicolon in "if ... ; then".
* Proper indentation of misindented lines.
* Put a full stop after some comments.
* Removed whitespace at end of line.

Approved by:	silence from gordon
@
text
@d10 1
a10 2
# REQUIRE: NETWORKING syslogd mountcritremote
# BEFORE: SERVERS
@


1.11
log
@Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on
OS-dependent case switches.
@
text
@d68 1
a68 1
	if checkyesno isdn_trace ; then
@


1.10
log
@Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:   Mike Makonnen <makonnen@@pacbell.net>
Reviewed by:    silence on -current and -hackers
Prodded by:     rwatson
@
text
@d20 1
a20 1
case `${CMD_OSTYPE}` in
@


1.9
log
@Anti-foot-shooting for pcvt users: ignore isdn_screenflags which is
only for syscons.

Requested by:	Alexander Leidinger <Alexander@@Leidinger.net>
MFC after:	7 days
@
text
@d3 2
a4 2
# Copyright (c) 1999  Hellmuth Michaelis
# All rights reserved.
d6 1
a6 22
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/etc/rc.isdn,v 1.8 2001/05/14 20:51:10 schweikh Exp $
d9 20
a28 6
#---------------------------------------------------------------------------
#
#	/etc/rc.isdn - isdn4bsd startup script
#	--------------------------------------
#
#---------------------------------------------------------------------------
d30 2
a31 2
case ${isdn_enable} in
[Yy][Ee][Ss])
d44 6
a49 3
	case ${isdn_flags} in
	[Nn][Oo])
		isdn_flags=''
d51 5
a55 9
	esac

	# Start the isdn daemon
	#
	if [ -x /usr/sbin/isdnd ]; then
		echo -n ' isdnd'
		case ${isdn_fsdev} in
		[Nn][Oo] | '')
			/usr/sbin/isdnd ${isdn_flags}
d58 1
a58 13
			# Change vidmode of ${isdn_fsdev}
			#
			case ${isdn_screenflags} in
			[Nn][Oo])
				;;
			*)
				if [ -x /usr/sbin/vidcontrol ]; then
					/usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
				fi
				;;
			esac

			/usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
d61 4
a64 1
	fi
d68 6
a73 8
	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
d75 2
a76 3
	echo '.'
	;;
esac
@


1.8
log
@New option isdn_screenflags to set the syscons screen params for isdnd,
plus documentation.

Submitted by:	Alexander Leidinger <Alexander@@Leidinger.net>
Not objected to by:	hm
MFC after:	1 week
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.isdn,v 1.7 2001/04/24 20:01:25 schweikh Exp $
d40 10
@


1.7
log
@Don't hardcode isdn_ttype overwriting rc.conf settings.
PR:		conf/24865
Submitted by:	schweikh
Reviewed by:	hm
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.isdn,v 1.6 2000/10/08 19:18:24 obrien Exp $
d56 12
@


1.6
log
@Add copyright notices.  Other systems have been barrowing our /etc files
w/o giving any credit.
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.isdn,v 1.5 1999/09/13 15:44:18 sheldonh Exp $
a34 2
#	last edit-date: [Mon Mar  8 12:15:56 1999]
#
a40 12
	# Terminal type for fullscreen mode, default to syscons driver
	#
	isdn_ttype=cons25

	# Check for pcvt driver (VT100/VT220 emulator)
	#
	if [ -x /usr/sbin/ispcvt ]; then
		if /usr/sbin/ispcvt; then
			isdn_ttype=pcvt25
		fi
	fi

d42 1
a42 1
	[Nn][Oo] | '')
@


1.5
log
@Apply a consistent style to most of the etc scripts.  Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@@gorean.org>
@
text
@d2 28
a35 2
#
# $FreeBSD: src/etc/rc.isdn,v 1.4 1999/08/27 23:23:44 peter Exp $
@


1.5.2.1
log
@MFC: Add copyright.
@
text
@a1 28
#
# Copyright (c) 1999  Hellmuth Michaelis
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD$
#

d8 2
@


1.5.2.2
log
@MFC: add copyright notices
@
text
@a29 26
#
# Copyright (c) 1999  Hellmuth Michaelis
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/etc/rc.isdn,v 1.5.2.1 2000/10/30 10:40:11 obrien Exp $
#

@


1.5.2.3
log
@I really did a number on adding the copyrights...
@
text
@d27 27
a53 1
# $FreeBSD: src/etc/rc.isdn,v 1.5.2.2 2001/03/06 01:58:45 obrien Exp $
@


1.5.2.4
log
@MFC:
@
text
@d1 88
a88 37
Index: rc.isdn
===================================================================
RCS file: /home/ncvs/src/etc/rc.isdn,v
retrieving revision 1.6
diff -u -r1.6 rc.isdn
--- rc.isdn	2000/10/08 19:18:24	1.6
+++ rc.isdn	2001/04/21 21:00:34
@@@@ -32,28 +32,14 @@@@
 #	/etc/rc.isdn - isdn4bsd startup script
 #	--------------------------------------
 #
-#	last edit-date: [Mon Mar  8 12:15:56 1999]
-#
 #---------------------------------------------------------------------------
 
 case ${isdn_enable} in
 [Yy][Ee][Ss])
 	echo -n 'ISDN subsystem setup:'
 
-	# Terminal type for fullscreen mode, default to syscons driver
-	#
-	isdn_ttype=cons25
-
-	# Check for pcvt driver (VT100/VT220 emulator)
-	#
-	if [ -x /usr/sbin/ispcvt ]; then
-		if /usr/sbin/ispcvt; then
-			isdn_ttype=pcvt25
-		fi
-	fi
-
 	case ${isdn_flags} in
-	[Nn][Oo] | '')
+	[Nn][Oo])
 		isdn_flags=''
 		;;
 	esac
@


1.5.2.5
log
@MFC: Oops. We don't want the patch, we want the real file.
I realized my mistake and left the editor without changing anything.
How could I have aborted the commit?
@
text
@d1 37
a37 96
#!/bin/sh
#
# Copyright (c) 1999  Hellmuth Michaelis
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/etc/rc.isdn,v 1.9 2001/05/19 08:17:35 schweikh Exp $
#

#---------------------------------------------------------------------------
#
#	/etc/rc.isdn - isdn4bsd startup script
#	--------------------------------------
#
#---------------------------------------------------------------------------

case ${isdn_enable} in
[Yy][Ee][Ss])
	echo -n 'ISDN subsystem setup:'

	# Check for pcvt driver (VT100/VT220 emulator)
	#
	if [ -x /usr/sbin/ispcvt ]; then
		if /usr/sbin/ispcvt; then
			# No vidcontrol if we are using pcvt
			#
			isdn_screenflags=NO
		fi
	fi

	case ${isdn_flags} in
	[Nn][Oo])
		isdn_flags=''
		;;
	esac

	# Start the isdn daemon
	#
	if [ -x /usr/sbin/isdnd ]; then
		echo -n ' isdnd'
		case ${isdn_fsdev} in
		[Nn][Oo] | '')
			/usr/sbin/isdnd ${isdn_flags}
			;;
		*)
			# Change vidmode of ${isdn_fsdev}
			#
			case ${isdn_screenflags} in
			[Nn][Oo])
				;;
			*)
				if [ -x /usr/sbin/vidcontrol ]; then
					/usr/sbin/vidcontrol < ${isdn_fsdev} > ${isdn_fsdev} 2>&1 ${isdn_screenflags}
				fi
				;;
			esac

			/usr/sbin/isdnd ${isdn_flags} -f -r ${isdn_fsdev} -t ${isdn_ttype}
			;;
		esac
	fi

	# 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

	echo '.'
	;;
esac
@


1.4
log
@$Id$ -> $FreeBSD$
@
text
@d9 1
a9 1
# $FreeBSD$
d13 2
a14 2
if [ "${isdn_enable}" = "YES" ] ; then

d17 2
a18 1
	# terminal type for fullscreen mode, default to syscons driver
d21 4
a24 3
	# check for pcvt driver (VT100/VT220 emulator)
	if [ -x /usr/sbin/ispcvt ] ; then
		if /usr/sbin/ispcvt ; then
d28 10
a37 7
	
	if [ "${isdn_flags}" = "NO" ] ; then
		isdn_flags=""
	fi
	
	# start the isdn daemon
	if [ -x /usr/sbin/isdnd ] ; then
d39 5
a43 3
		if [ "${isdn_fsdev}" = "NO" ] ; then
			/usr/sbin/isdnd ${isdn_flags} 
		else
d45 2
a46 1
		fi
d49 10
a58 5
	# start isdntrace	
	if [ "${isdn_trace}" = "YES" -a -x /usr/sbin/isdntrace ] ; then
		echo -n ' isdntrace'
		nohup /usr/sbin/isdntrace ${isdn_traceflags} >/dev/null 2>&1 &
	fi
d61 2
a62 1
fi
@


1.3
log
@Style clean-up:

	* All variables are now embraced: ${foo}

	* All comparisons against some value now take the form:
	  [ "${foo}" ? "value" ]
	  where ? is a comparison operator

	* All empty string tests now take the form:
	  [ -z "${foo}" ]

	* All non-empty string tests now take the form:
	  [ -n "${foo}" ]

Submitted by:	jkh
@
text
@d9 1
a9 1
#	$Id: rc.isdn,v 1.2 1999/03/08 11:28:45 hm Exp $
@


1.2
log
@fix cosmetic ISDN startup problem mentioned in PR conf/9957
@
text
@d9 1
a9 1
#	$Id: rc.isdn,v 1.1 1999/01/13 08:20:55 hm Exp $
d13 1
a13 1
if [ "X${isdn_enable}" = X"YES" ] ; then
d27 1
a27 1
	if [ "X${isdn_flags}" = X"NO" ] ; then
d34 1
a34 1
		if [ "X${isdn_fsdev}" = X"NO" ] ; then
d42 1
a42 1
	if [ "X${isdn_trace}" = X"YES" -a -x /usr/sbin/isdntrace ] ; then
@


1.1
log
@Integrate the ISDN subsystem into the /etc/rc framework
Reviewed by: Joerg Wunsch
@
text
@d7 1
a7 1
#	last edit-date: [Tue Jan 12 15:35:36 1999]
d9 1
a9 1
#	$Id:$
d15 2
d46 2
@


1.1.1.1
log
@Import the NetBSD 1.5 RC system.

Note that `rc' and `rc.shutdown' could not be imported because we already
have files with those names.
@
text
@d2 1
d4 2
a5 1
# $NetBSD: isdnd,v 1.2 2001/01/07 17:53:36 martin Exp $
d7 5
d13 1
a13 2
# PROVIDE: isdnd
# REQUIRE: NETWORK syslogd mountcritremote
d15 2
a16 1
. /etc/rc.subr
d18 10
a27 11
name="isdnd"
rcvar=$name
required_files="/etc/isdn/${name}.rc"

command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"

load_rc_config $name
run_rc_command "$1"

if checkyesno isdnd && checkyesno isdn_autoupdown; then
d29 9
a37 5
	# The isdn network interfaces could not be marked UP in the
	# ifconfig.* files, since the daemon wasn't available then.
	# If we are doing start: now it's running, so figure which
	# interfaces these applies to and UP them. If doing stop: 
	# down them (for symetry, and effectively they are down).
d39 4
a42 32
	case "$_arg" in
	  start)
		ifflag="-d"
		ifcmd="up"
		;;
	  stop)
		ifflag="-u"
		ifcmd="down"
		;;
	  *)
		exit 0
		;;
	esac

	if [ -z "$isdn_interfaces" ]; then
		# the user has not specified a list of interface
		# to track isdnd - try to figure ourselfs
		tmp=`ifconfig -l $ifflag`
		for int in $tmp; do
			# Check if the interface has been configured at all
			# XXX - does this work with IPv6 ?
			if ifconfig $int | fgrep inet >/dev/null; then
				case $int in
				isp*)
					isdn_interfaces="$isdn_interfaces $int"
					;;
				ipr*)
					isdn_interfaces="$isdn_interfaces $int"
					;;
				esac
			fi
		done
a43 3
	for int in $isdn_interfaces; do
		ifconfig $int $ifcmd
	done
a44 1

@


1.1.1.2
log
@Sync with NetBSD's mainline.
@
text
@d3 1
a3 1
# $NetBSD: isdnd,v 1.8 2002/03/22 04:33:58 thorpej Exp $
d7 1
a7 6
# REQUIRE: NETWORKING syslogd mountcritremote
# BEFORE:  SERVERS
#
#	Note that this means that syslogd will not be listening on
#	any isdn addresses.  This is considered a feature.
#
d20 47
@


1.1.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d9 1
a9 1
# $FreeBSD$
@


1.1.2.2
log
@MFC: I4B (0.83) merge to -RELEASE.
@
text
@d7 1
a7 1
#	last edit-date: [Mon Mar  8 12:15:56 1999]
d9 1
a9 1
# $FreeBSD: src/etc/rc.isdn,v 1.1.2.1 1999/08/29 14:18:56 peter Exp $
d13 1
a13 3
case ${isdn_enable} in
[Yy][Ee][Ss])
	echo -n 'ISDN subsystem setup:'
d15 1
a15 2
	# Terminal type for fullscreen mode, default to syscons driver
	#
d18 3
a20 4
	# Check for pcvt driver (VT100/VT220 emulator)
	#
	if [ -x /usr/sbin/ispcvt ]; then
		if /usr/sbin/ispcvt; then
d24 7
a30 10

	case ${isdn_flags} in
	[Nn][Oo] | '')
		isdn_flags=''
		;;
	esac

	# Start the isdn daemon
	#
	if [ -x /usr/sbin/isdnd ]; then
d32 3
a34 5
		case ${isdn_fsdev} in
		[Nn][Oo] | '')
			/usr/sbin/isdnd ${isdn_flags}
			;;
		*)
d36 1
a36 2
			;;
		esac
d39 6
a44 14
	# 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

	echo '.'
	;;
esac
@


