#!/bin/sh
#
# isapnp	Script to initialize all Plug-and-Play devices
#
#
# Author:       Till Bubeck (bubeck@delix.de)
#
# Date:		28.09.1997
#
# 
# $Version$
#
# _______
#|       | DLD - Deutsche Linux Distribution
#|       |                                 
#|       | delix Computer GmbH | EUnet POP Stuttgart    | Tel: +49-711-621027-0
#| delix | Schloss-Strasse. 98 | EUnet Vertriebspartner | Fax: +49-711-613590
#|_______| D-70176 Stuttgart   | Deutsche Linux D.- DLD | http://www.delix.de  
#
#set -x
# stamp file to show that isapnp cards where configured
STAMP=/var/run/isapnp-configured
PNPCONFIG=/etc/sysconfig/pnp

# remove stamp file
rm -f $STAMP

# read in pnp configuration (yes/no)
if [ -f $PNPCONFIG ]; then
    . $PNPCONFIG
fi

if [ "x$PNP" != "xyes" ]; then
  exit 0;
fi

# See how we were called.
case "$1" in
  start)
	if [ -x /sbin/isapnp -a -r /etc/isapnp.conf ]; then
	    echo "Initialisierung der Plug-and-Play-Karten: "
	    touch $STAMP
	    /sbin/isapnp /etc/isapnp.conf
	    echo "fertig"
	fi

	;;
  stop)
	;;
  *)
	echo "Usage: isapnp {start|stop}"
	exit 1
esac

exit 0

