aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/devfsd.conf92
1 files changed, 22 insertions, 70 deletions
diff --git a/examples/devfsd.conf b/examples/devfsd.conf
index ea7334374..e90e7102b 100644
--- a/examples/devfsd.conf
+++ b/examples/devfsd.conf
@@ -25,11 +25,10 @@ UNREGISTER .* RMNEWCOMPAT
25 25
26# Enable module autoloading. You may comment this out if you don't use 26# Enable module autoloading. You may comment this out if you don't use
27# autoloading 27# autoloading
28# Not supported by busybox 28# Supported by busybox when CONFIG_DEVFSD_MODLOAD is set.
29#LOOKUP .* MODLOAD 29# This actually doesn't work with busybox modutils but needs
30# Maybe one of these works for busybox 30# the real modutils' modprobe
31#LOOKUP .* EXECUTE /sbin/modprobe -k -v -C /etc/modules.devfs * 31LOOKUP .* MODLOAD
32#REGISTER .* EXECUTE /sbin/modprobe -k -v -C /etc/modules.devfs *
33 32
34# Uncomment the following if you want to set the group to "tty" for the 33# Uncomment the following if you want to set the group to "tty" for the
35# pseudo-tty devices. This is necessary so that mesg(1) can later be used to 34# pseudo-tty devices. This is necessary so that mesg(1) can later be used to
@@ -68,7 +67,6 @@ RESTORE /lib/dev-state
68REGISTER ^cdroms/cdrom0$ EXECUTE /bin/ln -sf $devname cdrom 67REGISTER ^cdroms/cdrom0$ EXECUTE /bin/ln -sf $devname cdrom
69UNREGISTER ^cdroms/cdrom0$ EXECUTE /bin/rm -f cdrom 68UNREGISTER ^cdroms/cdrom0$ EXECUTE /bin/rm -f cdrom
70 69
71
72#REGISTER ^v4l/video0$ CFUNCTION GLOBAL mksymlink v4l/video0 video 70#REGISTER ^v4l/video0$ CFUNCTION GLOBAL mksymlink v4l/video0 video
73#UNREGISTER ^v4l/video0$ CFUNCTION GLOBAL unlink video 71#UNREGISTER ^v4l/video0$ CFUNCTION GLOBAL unlink video
74#REGISTER ^radio0$ CFUNCTION GLOBAL mksymlink radio0 radio 72#REGISTER ^radio0$ CFUNCTION GLOBAL mksymlink radio0 radio
@@ -80,18 +78,23 @@ REGISTER ^radio0$ EXECUTE /bin/ln -sf radio0 radio
80UNREGISTER ^radio0$ EXECUTE /bin/rm -f radio 78UNREGISTER ^radio0$ EXECUTE /bin/rm -f radio
81 79
82# ALSA stuff 80# ALSA stuff
83# Not supported by busybox
84#LOOKUP snd MODLOAD ACTION snd 81#LOOKUP snd MODLOAD ACTION snd
85# Maybe this works for busybox
86#LOOKUP snd EXECUTE /sbin/modprobe -k -v -C /etc/modules.devfs snd
87 82
88# Uncomment this to let PAM manage devfs 83# Uncomment this to let PAM manage devfs
84# Not supported by busybox
89#REGISTER .* CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath 85#REGISTER .* CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $devpath
90 86
91# Uncomment this to manage USB mouse 87# Uncomment this to manage USB mouse
88# Not supported by busybox
92#REGISTER ^input/mouse0$ CFUNCTION GLOBAL mksymlink $devname usbmouse 89#REGISTER ^input/mouse0$ CFUNCTION GLOBAL mksymlink $devname usbmouse
93#UNREGISTER ^input/mouse0$ CFUNCTION GLOBAL unlink usbmouse 90#UNREGISTER ^input/mouse0$ CFUNCTION GLOBAL unlink usbmouse
94# Busybox 91# Busybox
92#REGISTER ^input/mouse0$ EXECUTE /bin/ln -sf $devname usbmouse
93#UNREGISTER ^input/mouse0$ EXECUTE /bin/rm -f usbmouse
94# Not supported by busybox
95#REGISTER ^input/mice$ CFUNCTION GLOBAL mksymlink $devname usbmouse
96#UNREGISTER ^input/mice$ CFUNCTION GLOBAL unlink usbmouse
97# Busybox
95REGISTER ^input/mice$ EXECUTE /bin/ln -sf $devname usbmouse 98REGISTER ^input/mice$ EXECUTE /bin/ln -sf $devname usbmouse
96UNREGISTER ^input/mice$ EXECUTE /bin/rm -f usbmouse 99UNREGISTER ^input/mice$ EXECUTE /bin/rm -f usbmouse
97 100
@@ -107,75 +110,24 @@ LOOKUP ^(ide/hd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpn
107LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 110LOOKUP ^(hd[a-z])[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
108# IDE-SCSI NEWCOMPAT /dev/sd/* names 111# IDE-SCSI NEWCOMPAT /dev/sd/* names
109#LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 112#LOOKUP ^(sd/c[0-9]+b[0-9]+t[0-9]+u[0-9]+)p[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
110# SCSI OLDCOMPAT /dev/scd? names 113#SCSI OLDCOMPAT /dev/scd? names
111LOOKUP ^(scd+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1 114LOOKUP ^(scd+)[0-9]+$ EXECUTE /bin/dd if=$mntpnt/\1 of=/dev/null count=1
112 115
113 116
114REGISTER ^dvb/card[0-9]+/[^/]+$ PERMISSIONS root.video 0660 117REGISTER ^dvb/card[0-9]+/[^/]+$ PERMISSIONS root.video 0660
115# Busybox 118# Not supported by busybox
116#REGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ CFUNCTION GLOBAL mksymlink /dev/$devname ost/\2\1 119#REGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ CFUNCTION GLOBAL mksymlink /dev/$devname ost/\2\1
117#UNREGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ CFUNCTION GLOBAL unlink ost/\2\1 120#UNREGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ CFUNCTION GLOBAL unlink ost/\2\1
121# Busybox
118REGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ EXECUTE /bin/ln -sf /dev/$devname ost/\2\1 122REGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ EXECUTE /bin/ln -sf /dev/$devname ost/\2\1
119UNREGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ EXECUTE /bin/rm -f ost/\2\1 123UNREGISTER ^dvb/card([0-9]+)/([^/0-9]*)[0-9]+$ EXECUTE /bin/rm -f ost/\2\1
120 124
121# Include package-generated files from /etc/devfs/conf.d 125# Include package-generated files from /etc/devfs/conf.d
122# Supported by busybox 126# Supported by busybox
123#OPTIONAL_INCLUDE /etc/devfs/conf.d/dvd.conf 127# INCLUDE /etc/devfs/conf.d/
124#INCLUDE /etc/devfs/conf.d/dvd.conf 128INCLUDE /etc/devfs/busybox/
125#OPTIONAL_INCLUDE /etc/devfs/conf.d/ 129# Busybox: just for testing
126#INCLUDE /etc/devfs/conf.d/ 130#INCLUDE /etc/devfs/nothing/
127 131#INCLUDE /etc/devfs/nothing/nothing
128#/etc/devfs/conf.d/dvd.conf 132#OPTIONAL_INCLUDE /etc/devfs/nothing/
129#REGISTER ^ide/host0/bus1/target1/lun0/cd$ CFUNCTION GLOBAL mksymlink ide/host0/bus1/target1/lun0/cd dvd 133#OPTIONAL_INCLUDE /etc/devfs/nothing/nothing
130#UNREGISTER ^ide/host0/bus1/target1/lun0/cd$ CFUNCTION GLOBAL unlink dvd
131REGISTER ^ide/host0/bus1/target1/lun0/cd$ EXECUTE ln -sf ide/host0/bus1/target1/lun0/cd dvd
132UNREGISTER ^ide/host0/bus1/target1/lun0/cd$ EXECUTE rm -f dvd
133
134#/etc/devfs/conf.d/dynamic.conf
135# dynamic desktop and co
136
137REGISTER .*/part.* EXECUTE /etc/dynamic/scripts/part.script add $devpath
138UNREGISTER .*/part.* EXECUTE /etc/dynamic/scripts/part.script del $devpath
139
140REGISTER v4l/video.* EXECUTE /etc/dynamic/scripts/webcam.script add $devpath
141UNREGISTER v4l/video.* EXECUTE /etc/dynamic/scripts/webcam.script del $devpath
142
143REGISTER usb/scanner.* EXECUTE /etc/dynamic/scripts/scanner.script add $devpath
144UNREGISTER usb/scanner.* EXECUTE /etc/dynamic/scripts/scanner.script del $devpath
145
146REGISTER usb/rio500 EXECUTE /etc/dynamic/scripts/rio500.script add $devpath
147UNREGISTER usb/rio500 EXECUTE /etc/dynamic/scripts/rio500.script del $devpath
148
149REGISTER usb/tts/[13579] EXECUTE /etc/dynamic/scripts/visor.script add $devpath
150UNREGISTER usb/tts/[13579] EXECUTE /etc/dynamic/scripts/visor.script del $devpath
151
152REGISTER (usb/lp.*|printers/.*) EXECUTE /etc/dynamic/scripts/lp.script add $devpath
153UNREGISTER (usb/lp.*|printers/.*) EXECUTE /etc/dynamic/scripts/lp.script del $devpath
154
155#/etc/devfs/conf.d/modem.conf
156#REGISTER ^$ CFUNCTION GLOBAL mksymlink modem
157#UNREGISTER ^$ CFUNCTION GLOBAL unlink modem
158REGISTER ^tts/0$ EXECUTE ln -sf $devname modem
159UNREGISTER ^$ EXECUTE rm -f modem
160
161#/etc/devfs/conf.d/mouse.conf
162#REGISTER ^misc/psaux$ CFUNCTION GLOBAL mksymlink misc/psaux mouse
163#UNREGISTER ^misc/psaux$ CFUNCTION GLOBAL unlink mouse
164REGISTER ^misc/psaux$ EXECUTE ln -sf misc/psaux mouse
165UNREGISTER ^misc/psaux$ EXECUTE rm -f mouse
166
167#/etc/devfs/conf.d/psaux.conf
168#REGISTER ^misc/psaux$ CFUNCTION GLOBAL mksymlink misc/psaux psaux
169#UNREGISTER ^misc/psaux$ CFUNCTION GLOBAL unlink psaux
170REGISTER ^misc/psaux$ EXECUTE ln -sf misc/psaux psaux
171UNREGISTER ^misc/psaux$ EXECUTE rm -f psaux
172
173#/etc/devfs/conf.d/rdvd.conf
174REGISTER ^ide/host0/bus1/target1/lun0/cd$ EXECUTE /etc/dynamic/scripts/rawdevice.script add /dev/ide/host0/bus1/target1/lun0/cd /dev/rdvd
175UNREGISTER ^ide/host0/bus1/target1/lun0/cd$ EXECUTE /etc/dynamic/scripts/rawdevice.script del /dev/rdvd
176
177#/etc/devfs/conf.d/ttyS0.conf
178#REGISTER ^tts/0$ CFUNCTION GLOBAL mksymlink tts/0 ttyS0
179#UNREGISTER ^tts/0$ CFUNCTION GLOBAL unlink ttyS0
180REGISTER ^tts/0$ EXECUTE ln -sf $devname ttyS0
181UNREGISTER ^tts/0$ EXECUTE rm -f ttyS0