head	1.3;
access;
symbols
	RELENG_5_0_0_RELEASE:1.2.2.1
	RELENG_5_0:1.2.0.2
	RELENG_5_0_BP:1.2;
locks; strict;
comment	@# @;


1.3
date	2003.01.09.04.11.19;	author imp;	state dead;
branches;
next	1.2;

1.2
date	2002.12.07.08.04.36;	author imp;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2002.10.20.22.15.17;	author imp;	state Exp;
branches;
next	;

1.2.2.1
date	2003.01.09.20.41.48;	author imp;	state dead;
branches;
next	;


desc
@@


1.3
log
@These are OBE.  devd.conf now lives in /etc.
@
text
@#!/bin/sh
#
# $FreeBSD: src/sbin/devd/devd-generic,v 1.2 2002/12/07 08:04:36 imp Exp $
#
# Script called by devd(8) whenever a device appears or disappears.
#
# XXX this is a temporary hack that will go away soon

dev="$1"
startstop="$2"

driver="${dev%%[0-9]*}"
unit="${dev##*[^0-9]}"

if [ -z "$driver" -o -z "$unit" ]; then
	echo "cannot parse device \"$dev\"" 1>&2
	exit 1
fi

case "$driver" in
an|ar|awi|bge|cm|cnw|cs|dc|de|ed|el|em|ep|ex|fe|fxp|gem|gx|hme|ie|lge|lnc|my| \
    nge|pcn|ray|rl|sf|sis|sk|sn|snc|ste|ti|tl|tx|txp|vr|vx|wb|wi|xe|xl)
	# An ethernet interface; call pccard_ether to do the real work
	/etc/pccard_ether "$dev" "$startstop"
	;;
esac
@


1.2
log
@MFp4 (imp_freebsd branch): snapshot of devd work:
o improve parsing and lexing
o create data structures based on the parsed file now.
o Still need to rewrite main loop and add regex (still uses hard coded
  devd-generic)
o minor man page updates.

# There should be one more commit before rc2

Approved by: re (blanket)
@
text
@d3 1
a3 1
# $FreeBSD$
@


1.2.2.1
log
@MFC: devd.conf -> src/etc.  devd-generic OBE.

Approved by: re@@ (scottl and jhb)
@
text
@d3 1
a3 1
# $FreeBSD: src/sbin/devd/devd-generic,v 1.2 2002/12/07 08:04:36 imp Exp $
@


1.1
log
@devd.  A daemon that hooks into the kernel's /dev/devctl to produce
arbitrary commands when devices come and go in the device tree (which is
different than the /dev directory).

This is an initial version.  Much of the planned power isn't here.
Instead of doing the full matching, we always run /etc/devd-generic.
/etc/devd.generic will go away at some point, I think.

I'm committing it in this early state so I can start getting feedback
from early adapters.

Approved by: re
@
text
@@

