summaryrefslogtreecommitdiff
blob: 21d59a2bde172acbd2e22b44ea26a7990c1c1854 (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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/isapnptools/files/isapnp.rc6,v 1.8 2004/03/06 04:09:07 vapier Exp $

depend() {
	need localmount
}

start() {
	if [ -e /etc/isapnp.conf ]; then
		if [ -e /usr/sbin/isapnp ] ; then
			ebegin "Configuring ISA PnP devices"
			/usr/sbin/isapnp /etc/isapnp.conf 1>&2
			eend $?
		else
			eerror "You're missing /usr/sbin/isapnp. Do emerge sys-apps/isapnptools"
			return 1
		fi
	else
		eerror "You need an /etc/isapnp.conf file first"
		eerror "Theres a sample in docs/isapnptools/txt"
		return 1
	fi
}