head	1.31;
access;
symbols
	RELENG_6_4_0_RELEASE:1.30.12.1
	RELENG_6_4:1.30.0.12
	RELENG_6_4_BP:1.30
	RELENG_6_3_0_RELEASE:1.30
	RELENG_6_3:1.30.0.10
	RELENG_6_3_BP:1.30
	RELENG_6_2_0_RELEASE:1.30
	RELENG_6_2:1.30.0.8
	RELENG_6_2_BP:1.30
	RELENG_5_5_0_RELEASE:1.29.2.1
	RELENG_5_5:1.29.2.1.0.6
	RELENG_5_5_BP:1.29.2.1
	RELENG_6_1_0_RELEASE:1.30
	RELENG_6_1:1.30.0.6
	RELENG_6_1_BP:1.30
	RELENG_6_0_0_RELEASE:1.30
	RELENG_6_0:1.30.0.4
	RELENG_6_0_BP:1.30
	RELENG_6:1.30.0.2
	RELENG_6_BP:1.30
	RELENG_5_4_0_RELEASE:1.29.2.1
	RELENG_5_4:1.29.2.1.0.4
	RELENG_5_4_BP:1.29.2.1
	RELENG_5_3_0_RELEASE:1.29.2.1
	RELENG_5_3:1.29.2.1.0.2
	RELENG_5_3_BP:1.29.2.1
	RELENG_5:1.29.0.2
	RELENG_5_BP:1.29
	RELENG_5_2_1_RELEASE:1.28
	RELENG_5_2_0_RELEASE:1.28
	RELENG_5_2:1.28.0.4
	RELENG_5_2_BP:1.28
	RELENG_5_1_0_RELEASE:1.28
	RELENG_5_1:1.28.0.2
	RELENG_5_1_BP:1.28
	RELENG_5_0_0_RELEASE:1.27
	RELENG_5_0:1.27.0.2
	RELENG_5_0_BP:1.27
	old_RELENG_4_6_1_RELEASE:1.20.2.5
	old_RELENG_4_6_0_RELEASE:1.20.2.5
	old_RELENG_4_6:1.20.2.5.0.8
	old_RELENG_4_6_BP:1.20.2.5
	old_RELENG_4_5_0_RELEASE:1.20.2.5
	old_RELENG_4_5:1.20.2.5.0.6
	old_RELENG_4_5_BP:1.20.2.5
	old_RELENG_4_4_0_RELEASE:1.20.2.5
	old_RELENG_4_4:1.20.2.5.0.4
	old_RELENG_4_4_BP:1.20.2.5
	old_RELENG_4_3_0_RELEASE:1.20.2.5
	old_RELENG_4_3:1.20.2.5.0.2
	old_RELENG_4_3_BP:1.20.2.5
	old_RELENG_4_2_0_RELEASE:1.20.2.1
	old_RELENG_4_1_1_RELEASE:1.20
	old_PRE_SMPNG:1.20
	old_RELENG_4_1_0_RELEASE:1.20
	old_RELENG_3_5_0_RELEASE:1.6.2.7
	old_RELENG_4_0_0_RELEASE:1.20
	old_RELENG_4:1.20.0.2
	old_RELENG_4_BP:1.20
	old_RELENG_3_4_0_RELEASE:1.6.2.7
	old_RELENG_3_3_0_RELEASE:1.6.2.7
	old_RELENG_3_2_PAO:1.6.2.4.0.2
	old_RELENG_3_2_PAO_BP:1.6.2.4
	old_RELENG_3_2_0_RELEASE:1.6.2.4
	old_RELENG_3_1_0_RELEASE:1.6.2.1
	old_RELENG_3:1.6.0.2
	old_RELENG_3_BP:1.6
	old_RELENG_2_2_8_RELEASE:1.1.4.3
	old_RELENG_3_0_0_RELEASE:1.6
	old_RELENG_2_2_7_RELEASE:1.1.4.2
	old_RELENG_2_2_6_RELEASE:1.1.4.2
	old_RELENG_2_2_5_RELEASE:1.1.4.2
	old_RELENG_2_2_2_RELEASE:1.1.4.2
	old_RELENG_2_2_1_RELEASE:1.1
	old_RELENG_2_2_0_RELEASE:1.1
	old_RELENG_2_1_7_RELEASE:1.1
	old_RELENG_2_1_6_1_RELEASE:1.1
	old_RELENG_2_1_6_RELEASE:1.1
	old_RELENG_2_2:1.1.0.4
	old_RELENG_2_2_BP:1.1
	old_RELENG_2_1_5_RELEASE:1.1
	old_RELENG_2_1_0:1.1.0.2;
locks; strict;
comment	@# @;


1.31
date	2006.02.13.20.08.31;	author imp;	state dead;
branches;
next	1.30;

1.30
date	2004.10.07.13.55.26;	author mtm;	state Exp;
branches
	1.30.2.1
	1.30.12.1;
next	1.29;

1.29
date	2004.03.08.12.25.05;	author pjd;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	2003.02.12.04.12.23;	author imp;	state Exp;
branches;
next	1.27;

1.27
date	2002.10.12.10.31.31;	author schweikh;	state Exp;
branches;
next	1.26;

1.26
date	2002.06.13.22.14.36;	author gordon;	state Exp;
branches;
next	1.25;

1.25
date	2001.03.04.17.34.37;	author jhb;	state Exp;
branches;
next	1.24;

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

1.23
date	2000.12.17.08.15.57;	author dougb;	state Exp;
branches;
next	1.22;

1.22
date	2000.10.08.19.18.24;	author obrien;	state Exp;
branches;
next	1.21;

1.21
date	2000.09.23.17.09.04;	author alex;	state Exp;
branches;
next	1.20;

1.20
date	99.12.02.19.48.15;	author imp;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	99.09.13.15.44.18;	author sheldonh;	state Exp;
branches;
next	1.18;

1.18
date	99.08.27.23.23.44;	author peter;	state Exp;
branches;
next	1.17;

1.17
date	99.08.25.16.01.37;	author sheldonh;	state Exp;
branches;
next	1.16;

1.16
date	99.07.26.01.08.16;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	99.07.07.01.26.55;	author hosokawa;	state Exp;
branches;
next	1.14;

1.14
date	99.07.07.01.19.12;	author hosokawa;	state Exp;
branches;
next	1.13;

1.13
date	99.07.04.14.41.18;	author hosokawa;	state Exp;
branches;
next	1.12;

1.12
date	99.05.05.19.34.29;	author markm;	state Exp;
branches;
next	1.11;

1.11
date	99.05.04.08.34.55;	author dima;	state Exp;
branches;
next	1.10;

1.10
date	99.03.17.21.57.00;	author nate;	state Exp;
branches;
next	1.9;

1.9
date	99.03.17.20.57.40;	author nate;	state Exp;
branches;
next	1.8;

1.8
date	99.03.17.17.39.50;	author nate;	state Exp;
branches;
next	1.7;

1.7
date	99.02.04.10.06.44;	author markm;	state Exp;
branches;
next	1.6;

1.6
date	98.08.10.19.54.12;	author brian;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	97.05.03.11.22.17;	author jkh;	state Exp;
branches;
next	1.4;

1.4
date	97.04.28.05.51.55;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	97.04.27.03.59.14;	author jkh;	state Exp;
branches;
next	1.2;

1.2
date	97.01.06.06.26.00;	author nate;	state Exp;
branches;
next	1.1;

1.1
date	96.03.14.18.24.07;	author nate;	state Exp;
branches
	1.1.4.1;
next	;

1.30.2.1
date	2012.11.17.07.39.08;	author svnexp;	state Exp;
branches;
next	;

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

1.29.2.1
date	2004.10.10.09.50.54;	author mtm;	state Exp;
branches;
next	;

1.20.2.1
date	2000.10.30.10.40.11;	author obrien;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2001.01.14.09.47.48;	author dougb;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2001.03.05.22.27.54;	author jhb;	state Exp;
branches;
next	1.20.2.4;

1.20.2.4
date	2001.03.06.01.58.45;	author obrien;	state Exp;
branches;
next	1.20.2.5;

1.20.2.5
date	2001.03.06.02.22.00;	author obrien;	state Exp;
branches;
next	;

1.6.2.1
date	99.02.05.09.42.27;	author markm;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	99.03.17.17.41.35;	author nate;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	99.03.17.20.58.33;	author nate;	state Exp;
branches;
next	1.6.2.4;

1.6.2.4
date	99.03.17.21.57.53;	author nate;	state Exp;
branches
	1.6.2.4.2.1;
next	1.6.2.5;

1.6.2.5
date	99.07.26.01.09.39;	author obrien;	state Exp;
branches;
next	1.6.2.6;

1.6.2.6
date	99.08.21.17.16.30;	author kuriyama;	state Exp;
branches;
next	1.6.2.7;

1.6.2.7
date	99.08.29.14.18.57;	author peter;	state Exp;
branches;
next	;

1.6.2.4.2.1
date	99.06.22.02.08.53;	author imp;	state Exp;
branches;
next	;

1.1.4.1
date	97.04.26.22.39.34;	author jkh;	state Exp;
branches;
next	1.1.4.2;

1.1.4.2
date	97.04.28.05.50.12;	author jkh;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	98.08.12.23.46.35;	author brian;	state Exp;
branches;
next	1.1.4.4;

1.1.4.4
date	99.09.05.11.01.58;	author peter;	state Exp;
branches;
next	;


desc
@@


1.31
log
@Since OLDCARD is gone from the kernel, catchup here and remove support
from here as well.
@
text
@#!/bin/sh
#
# Copyright (c) 1996  The FreeBSD Project
# 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.d/pccard,v 1.30 2004/10/07 13:55:26 mtm Exp $
#

# PROVIDE: pccard
# REQUIRE: mountcritlocal
# KEYWORD: nojail

. /etc/rc.subr

name="pccard"
start_cmd="pccard_start"
stop_cmd=":"

pccard_start()
{
	if [ ! -c /dev/card0 ]; then
		exit 0
	fi
	if checkyesno pccard_enable; then
		echo -n 'Setup PC-CARD:'

		case ${pccard_mem} in
		[Dd][Ee][Ff][Aa][Uu][Ll][Tt])
			pccardc pccardmem 0xd0000 1>/dev/null && echo -n ' memory'
			;;
		*)
			pccardc pccardmem ${pccard_mem} 1>/dev/null && echo -n ' memory'
			;;
		esac

		if [ -n "${pccard_beep}" ]; then
			pccardc beep ${pccard_beep} && echo -n ' beep'
		fi

		if [ -n "${pccard_conf}" ]; then
			pccardd_flags="${pccardd_flags} -f ${pccard_conf}"
		fi

		pccardd ${pccardd_flags} && echo -n ' pccardd'
		echo '.'
	fi
}

load_rc_config $name
run_rc_command "$1"
@


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

Discussed with: dougb, brooks
MFC after: 3 days
@
text
@d27 1
a27 1
# $FreeBSD$
@


1.30.2.1
log
@Switch importer
@
text
@d27 1
a27 1
# $FreeBSD: stable/6/etc/rc.d/pccard 136224 2004-10-07 13:55:26Z mtm $
@


1.30.12.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.29
log
@Mark scripts as not usable inside a jail by adding keyword 'nojail'.

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


1.29.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
@d32 1
a32 1
# KEYWORD: nojail
@


1.28
log
@Now that we don't have the NODEVFS case, we can just check to see if a
device node exists directly to see if OLDCARD is compiled into the
kernel.  This eliminates the scary warning that people using NEWCARD
are seeing when they have pccard_enable=YES in their /etc/rc.conf
files.
@
text
@d32 1
a32 1
# KEYWORD: FreeBSD
@


1.27
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
@d42 3
@


1.26
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
@d42 1
a42 1
	if checkyesno pccard_enable ; then
d54 1
a54 1
		if [ -n "${pccard_beep}" ] ; then
@


1.25
log
@Alter the pccard setup a bit so that it looks prettier by redirecting
pccardc's stdout to /dev/null and outputting short messages on succesful
completion instead much like other rc scripts.

Reviewed by:	imp
@
text
@d1 1
a1 1
#!/bin/sh -
d27 1
a27 1
# $FreeBSD: src/etc/rc.pccard,v 1.24 2001/01/14 09:29:57 dougb Exp $
d30 31
a60 1
#	PC-card startup script
d62 2
a63 19
case ${pccard_enable} in
[Yy][Ee][Ss])
	echo -n 'Setup PC-CARD:'

	case ${pccard_mem} in
	[Dd][Ee][Ff][Aa][Uu][Ll][Tt])
		pccardc pccardmem 0xd0000 1>/dev/null && echo -n ' memory'
		;;
	*)
		pccardc pccardmem ${pccard_mem} 1>/dev/null && echo -n ' memory'
		;;
	esac

	if [ -n "${pccard_beep}" ] ; then
		pccardc beep ${pccard_beep} && echo -n ' beep'
	fi

	if [ -n "${pccard_conf}" ]; then
		pccardd_flags="${pccardd_flags} -f ${pccard_conf}"
d65 1
d67 2
a68 4
	pccardd ${pccardd_flags} && echo -n ' pccardd'
	echo '.'
	;;
esac
@


1.24
log
@Fix this to be more consistent with similar constructions elsewhere
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.pccard,v 1.23 2000/12/17 08:15:57 dougb Exp $
d34 1
a34 1
	echo -n 'Enable PC-card:'
d38 1
a38 1
		pccardc pccardmem 0xd0000
d41 1
a41 1
		pccardc pccardmem ${pccard_mem}
d46 1
a46 1
		pccardc beep ${pccard_beep}
d53 1
a53 1
	pccardd ${pccardd_flags} 2>&1 > /var/log/pccardd.debug
@


1.23
log
@Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line
* Single quotes for lines with no variable interpolation
* Double quotes if there is
* Capitalize each word that begins a line
* Make echo -n 'Doing foo:' ... echo '.' more of a standard

No functionality changes
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.pccard,v 1.22 2000/10/08 19:18:24 obrien Exp $
d34 1
a34 1
	echo 'Enable PC-card:'
@


1.22
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.pccard,v 1.21 2000/09/23 17:09:04 alex Exp $
d34 1
a34 1
	echo "Enable PC-card."
d54 1
@


1.21
log
@Print "Enable PC-card." before anything else is done with
PC-card stuff.  Also print a NEWLINE (!!) after that.

I'm driving mad each time when I see messages related to pccard before
"Enable PC-card." and particulary when I see
"Doing initial network setup". on the same line w/o a break.
@
text
@d2 28
a30 1
# $FreeBSD: src/etc/rc.pccard,v 1.20 1999/12/02 19:48:15 imp Exp $
@


1.20
log
@Now that pccardc beep actually works, add knob for it in rc.conf/rc.pccard

Submitted by: sanpei@@sanpei.org (MIHIRA-san Yoshiro)
@
text
@d3 1
a3 1
# $FreeBSD: src/etc/rc.pccard,v 1.19 1999/09/13 15:44:18 sheldonh Exp $
d7 2
a25 1
	echo -n "Enable PC-card."
@


1.20.2.1
log
@MFC: Add copyright.
@
text
@a1 28
#
# Copyright (c) 1996  The FreeBSD Project
# 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$
#

d3 1
@


1.20.2.2
log
@MFC, Apply a more consistent style to the echo statements in /etc/ scripts.
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.pccard,v 1.20.2.1 2000/10/30 10:40:11 obrien Exp $
a33 2
	echo -n 'Enable PC-card:'

d51 1
a52 1
	echo '.'
@


1.20.2.3
log
@MFC: Cosmetic tweaks to the pccard startup script to be more consistent
with other rc scripts.
@
text
@d27 1
a27 1
# $FreeBSD$
d34 1
a34 1
	echo -n 'Setup PC-CARD:'
d38 1
a38 1
		pccardc pccardmem 0xd0000 1>/dev/null && echo -n ' memory'
d41 1
a41 1
		pccardc pccardmem ${pccard_mem} 1>/dev/null && echo -n ' memory'
d46 1
a46 1
		pccardc beep ${pccard_beep} && echo -n ' beep'
d53 1
a53 1
	pccardd ${pccardd_flags} && echo -n ' pccardd'
@


1.20.2.4
log
@MFC: add copyright notices
@
text
@d27 1
a27 1
# $FreeBSD: src/etc/rc.pccard,v 1.20.2.3 2001/03/05 22:27:54 jhb Exp $
d30 1
a30 27
#
# Copyright (c) 1996  The FreeBSD Project
# 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.
#

#
a31 1
#	PC-card startup script
@


1.20.2.5
log
@I really did a number on adding the copyrights...
@
text
@d27 29
a55 1
# $FreeBSD$
a58 1

@


1.19
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
@d3 1
a3 1
# $FreeBSD: src/etc/rc.pccard,v 1.18 1999/08/27 23:23:44 peter Exp $
d15 4
@


1.18
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
d5 7
a11 2
if [ "${pccard_enable}" = "YES" ] ; then
	if [ "${pccard_mem}" != "DEFAULT" ] ; then
d13 4
a16 4
	else
		pccardc pccardmem 0xd0000
	fi
	if [ -n "${pccard_conf}" ] ; then
d19 2
a20 1
	echo -n "Enable PC-card." 
d22 2
a23 1
fi
@


1.17
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
@d3 1
a3 1
#	$Id: rc.pccard,v 1.16 1999/07/26 01:08:16 obrien Exp $
@


1.16
log
@Don't background pccardd, it nullfies the "-z" flag.  pccardd itself
daemonizes, lets just let things progress normally.
@
text
@d3 1
a3 1
#	$Id: rc.pccard,v 1.15 1999/07/07 01:26:55 hosokawa Exp $
d5 3
a7 3
if [ "X$pccard_enable" = X"YES" ] ; then
	if [ "x$pccard_mem" != "xDEFAULT" ] ; then
		pccardc pccardmem $pccard_mem
d11 2
a12 2
	if [ "X$pccard_conf" != "X" ] ; then
		pccardd_flags="$pccardd_flags -f $pccard_conf"
d15 1
a15 1
	pccardd $pccardd_flags 2>&1 > /var/log/pccardd.debug
@


1.15
log
@Removed my name and (old) e-mail address from comments.
@
text
@d3 1
a3 1
#	$Id: rc.pccard,v 1.14 1999/07/07 01:19:12 hosokawa Exp $
d15 1
a15 1
	pccardd $pccardd_flags 2>&1 > /var/log/pccardd.debug &
@


1.14
log
@Added pccard_conf parameter to /etc/rc.conf,
and set it to "/etc/pccard.conf.sample" in /etc/defaults/rc.conf.
Perhaps this default value can be inappropriate,
but I set to this value for the convenience of PC-card boot.flp users.
Please correct it if there are better solutions.
@
text
@d2 2
a3 6
#
# PC-card startup script
# HOSOKAWA, Tatsumi <hosokawa@@mt.cs.keio.ac.jp>
#
#	$Id: rc.pccard,v 1.12 1999/05/05 19:34:29 markm Exp $
#
@


1.13
log
@Added "pccardd_flags" for rc.conf.
@
text
@d15 3
@


1.12
log
@This has bitrotted to the state that it is no longer functional.
Make Mike Smith very happy by nuking the PCIC auto-load code. :-)

NOTE - You will have to have PCIC in your kernel again!!
You have been warned!!
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.11 1999/05/04 08:34:55 dima Exp $
d16 1
a16 1
	pccardd 2>&1 > /var/log/pccardd.debug &
@


1.11
log
@Use ``grep -w'' to prevent catching "pcic_pci"
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.10 1999/03/17 21:57:00 nate Exp $
a9 8
	builtin=`kldstat -v -i 1 | grep -w pcic | awk '{print $2}'`
	if [ "$builtin" = "pcic" ] ; then
		echo "PCIC module compiled in"
	else
		if kldload pcic; then
			echo "Kernel pcic module loaded."
		fi
	fi
@


1.10
log
@- Mixup of kldstat arguments.  Use '-i 1' instead of '-n 1' when checking
  for the PCIC module in the kernel.

{ I promise this is the last commit! }

Submitted by:	"Sean O'Connell" <sean@@stat.Duke.EDU>
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.9 1999/03/17 20:57:40 nate Exp $
d10 1
a10 1
	builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'`
@


1.9
log
@Whoops, fixed typos in PCIC loading command when I modified Sean's
original patch.

Submitted by:	"Sean O'Connell" <sean@@stat.Duke.EDU>
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.8 1999/03/17 17:39:50 nate Exp $
d10 1
a10 1
	builtin=`kldstat -v -n 1 | grep pcic | awk '{print $2}'`
@


1.8
log
@Add a Q&D test before loading the pcic module to make sure there isn't
a compiled in one.

Submitted by:	"Sean O'Connell" <sean@@stat.Duke.EDU>
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.7 1999/02/04 10:06:44 markm Exp $
d11 1
a11 1
	if [ $builtin = 'pcic' ] ; then
@


1.7
log
@Add bits useful to getting laptops going (my Libretto in particular)
Add ActionTec v.90 modem and Libretto Floppy to pccard database;
Autoload pcic device.
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.6 1998/08/10 19:54:12 brian Exp $
d10 7
a16 2
	if kldload pcic; then
		echo "Kernel pcic module loaded."
@


1.6
log
@Add Id keyword.
@
text
@d6 1
a6 1
#	$Id$
d10 3
@


1.6.2.1
log
@MFC: Make life easier for Laptop owners; autoload pcic and additions
to pccard database.
@
text
@a9 3
	if kldload pcic; then
		echo "Kernel pcic module loaded."
	fi
@


1.6.2.2
log
@MFC: Add a Q&D test before loading the pcic module to make sure there
isn't a compiled in one.
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.8 1999/03/17 17:39:50 nate Exp $
d10 2
a11 7
	builtin=`kldstat -v -n 1 | grep pcic | awk '{print $2}'`
	if [ $builtin = 'pcic' ] ; then
		echo "PCIC module compiled in"
	else
		if kldload pcic; then
			echo "Kernel pcic module loaded."
		fi
@


1.6.2.3
log
@MFC: Fix typos in PCIC load check.
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.6.2.2 1999/03/17 17:41:35 nate Exp $
d11 1
a11 1
	if [ "$builtin" = "pcic" ] ; then
@


1.6.2.4
log
@MFC: Use the correct arguments to kldstat.
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.6.2.3 1999/03/17 20:58:33 nate Exp $
d10 1
a10 1
	builtin=`kldstat -v -i 1 | grep pcic | awk '{print $2}'`
@


1.6.2.5
log
@MFC: rev 1.16 (don't background pccardd)
@
text
@d6 1
a6 1
#	$Id: rc.pccard,v 1.6.2.4 1999/03/17 21:57:53 nate Exp $
d24 1
a24 1
	pccardd 2>&1 > /var/log/pccardd.debug
@


1.6.2.6
log
@MFC: Added "pccardd_flags" for rc.conf.
     Removed hosokawa's name and (old) e-mail address from comments.
@
text
@d2 6
a7 2
#	PC-card startup script
#	$Id$
d24 1
a24 1
	pccardd $pccardd_flags 2>&1 > /var/log/pccardd.debug
@


1.6.2.7
log
@$Id$ -> $FreeBSD$
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.6.2.4.2.1
log
@Merge /etc/Makefile from PAO3-19990605 into Makefile.
Merge other changes from said PAO3 version.

Obtained from:	PAO3-19990605.tar.gz
@
text
@d4 3
a6 1
# HOSOKAWA, Tatsumi <hosokawa@@jp.FreeBSD.org>
d9 8
a16 5
echo 'Initial rc.pccard configuration:'

if [ "x$pccardc" != "x" ] ; then
	if [ ! -x $pccardc ] ; then
		pccardc=/usr/sbin/pccardc
a17 13
else
	pccardc=/usr/sbin/pccardc
fi

if [ "x$pccardd" != "x" ] ; then
	if [ ! -x $pccardd ] ; then
		pccardd=/usr/sbin/pccardd
	fi
else
	pccardd=/usr/sbin/pccardd
fi

if [ "x$pccard_enable" != "xNO" ] ; then
d19 1
a19 2
		echo " pcic-memory=$pccard_mem"
		$pccardc pccardmem $pccard_mem
d21 1
a21 6
		echo " pcic-memory=0xd0000"
		$pccardc pccardmem 0xd0000
	fi

	if [ "x$pccardd_flags" = "xNO" ] ; then
		pccardd_flags=""
d23 2
a24 3

	echo " execute pccardd" 
	$pccardd $pccardd_flags &
a25 7

if [ "x$pccard_beep" != "xNO" ] ; then
	echo " pccard-beep=$pccard_beep" 
	$pccardc beep $pccard_beep
fi

echo '.'
@


1.5
log
@Update the etc world from RELENG_2_2 which is now more up-to-date
(gotta get myself -current again, this is a drag).

Also-fixes-problems-noted-by: Wolfgang Helbig & Joerg Wunsch
@
text
@d6 2
@


1.4
log
@YAMF22
@
text
@d13 2
a14 2
	echo "Enable PC-card." 
	pccardd &
@


1.3
log
@Bring in rc file changes from -current.
@
text
@a6 5
if [ "X$apm_enable" = X"YES" ] ; then
	echo "Enable APM BIOS."
	apmconf -e
fi

@


1.2
log
@Minor modifications to the PCCARD startup files and comments.

Submitted by:	The Nomads
@
text
@d7 1
a7 1
if [ "x$apm_enable" = "xYES" ] ; then
d9 1
a9 1
	/usr/sbin/apmconf -e
d12 1
a12 1
if [ "x$pccard_enable" != "xNO" ] ; then
d14 1
a14 1
		/usr/sbin/pccardc pccardmem $pccard_mem
d16 1
a16 1
		/usr/sbin/pccardc pccardmem 0xd0000
d19 1
a19 1
	/usr/sbin/pccardd &
@


1.1
log
@Renamed the relevant PC-Card support files to reflect the newest release.
@
text
@d18 2
a19 2
	echo -n "Enable PC-card." 
	/usr/sbin/pccardd 2>&1 > /var/log/pccardd.debug &
@


1.1.4.1
log
@Bring in rc reorganizational changes.  I'm bringing them into 2.2
first rather than 3.0 because, ironically, I have every confidence that
they run in 2.2 but not in 3.0 yet.  3.0 commits will follow just as I've
finished an inventory for any new knobs in -current which need accomodation.
In any case, it's good to get them into 2.2 early because there is going
to be a doc hit for this (all the references to sysconfig) and I'd just
as soon start getting people used to the new files ASAP rather than
prolonging the pain any more than necessary.
@
text
@d7 1
a7 1
if [ "X$apm_enable" = X"YES" ] ; then
d9 1
a9 1
	apmconf -e
d12 1
a12 1
if [ "X$pccard_enable" = X"YES" ] ; then
d14 1
a14 1
		pccardc pccardmem $pccard_mem
d16 1
a16 1
		pccardc pccardmem 0xd0000
d19 1
a19 1
	pccardd 2>&1 > /var/log/pccardd.debug &
@


1.1.4.2
log
@Move apm configuration to rc.i386 where it belongs.
Fix the rndcontrol stuff (it can't possibly have ever worked :-)
@
text
@d7 5
@


1.1.4.3
log
@MFC: Add Id keyword.
@
text
@a5 2
#	$Id$
#
@


1.1.4.4
log
@$Id$ -> $FreeBSD$
@
text
@d6 1
a6 1
# $FreeBSD$
@

