File: README.devfs

package info (click to toggle)
mwavem 1.0.2-11
  • links: PTS
  • area: main
  • in suites: woody
  • size: 7,204 kB
  • ctags: 6,561
  • sloc: ansic: 54,209; sh: 2,929; makefile: 417
file content (30 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
Sent by:	jdthood@us.ibm.com
To:	Paul Schroeder/Austin/IBM@IBMUS
cc:	 
Subject:	/dev/modems/mwave symlink creation



To create the symlink from /dev/modems/mwave to /dev/misc/mwave
automatically under devfs when the Mwave driver is loaded:

1) Add the following lines to /etc/devfsd.conf.  On a Debian system
create the file /etc/devfs/conf.d/mwave with the following lines and
then run "update-devfsd".

REGISTER ^misc/mwave$     EXECUTE /usr/sbin/mwave-dev-event-handler register
UNREGISTER ^misc/mwave$   EXECUTE /usr/sbin/mwave-dev-event-handler unregister

2) Create the following executable file /usr/sbin/mwave-dev-event-handler :

#!/bin/sh

case "$1" in
register)
        [ ! -d /dev/modems ] && mkdir --mode=0755 /dev/modems
        [ ! -h /dev/modems/mwave ] && ln -s /dev/misc/mwave /dev/modems/mwave
        ;;
unregister)
        rm -f /dev/modems/mwave
        ;;
esac