summaryrefslogtreecommitdiffstats
path: root/etc/rc.pccard
blob: 12425ccf4b195e5ad0b7b3c6816a0bef2ab3cb60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -
#
# PC-card startup script
# HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
#
#	$Id: rc.pccard,v 1.9 1999/03/17 20:57:40 nate Exp $
#

if [ "X$pccard_enable" = X"YES" ] ; then
	builtin=`kldstat -v -i 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
	fi
	if [ "x$pccard_mem" != "xDEFAULT" ] ; then
		pccardc pccardmem $pccard_mem
	else
		pccardc pccardmem 0xd0000
	fi
	echo -n "Enable PC-card." 
	pccardd 2>&1 > /var/log/pccardd.debug &
fi
OpenPOWER on IntegriCloud