- Timestamp:
- Feb 21, 2006, 1:50:52 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 073be62
- Parents:
- 691a65c
- Location:
- udev
- Files:
-
- 1 deleted
- 7 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
udev/50-udev.rules
r691a65c r103e3eb 175 175 176 176 # kernel firmware loader 177 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware .sh"177 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper" -
udev/60-persistent.rules
r691a65c r103e3eb 60 60 KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n" 61 61 62 KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --no headings -o name -j %M -m %m", SYMLINK="disk/by-name/%c"62 KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c" 63 63 64 64 LABEL="persistent_end" -
udev/85-mount-fstab.rules
r691a65c r103e3eb 15 15 ######################################################################## 16 16 17 ENV{SYSCONFIG}=="no|off|0", GOTO="sysconfig_end" 18 19 # network devices 20 KERNEL=="tun", NAME="net/%k", MODE="0600" 21 SUBSYSTEM=="net", ACTION=="add", RUN+="/sbin/ifup $env{INTERFACE} -o hotplug" 22 SUBSYSTEM=="net", ACTION=="remove", RUN+="/sbin/ifdown %k -o hotplug" 23 24 LABEL="sysconfig_end" 17 SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh" -
udev/95-debug.rules
r691a65c r103e3eb 16 16 17 17 # debug events to /events, but not on default udev_log="err" 18 ENV{UDEV_LOG}=="[4-9]", RUN+=" /lib/udev/eventrecorder.sh"18 ENV{UDEV_LOG}=="[4-9]", RUN+="eventrecorder.sh" 19 19 20 20 # event to be catched by udevmonitor -
udev/Makefile
r691a65c r103e3eb 13 13 install -m ${RULESMODE} 50-udev.rules ${DESTDIR}/etc/udev/rules.d/50-udev.rules 14 14 install -m ${RULESMODE} 60-persistent.rules ${DESTDIR}/etc/udev/rules.d/60-persistent.rules 15 install -m ${RULESMODE} 8 0-sysconfig.rules ${DESTDIR}/etc/udev/rules.d/80-sysconfig.rules15 install -m ${RULESMODE} 85-mount-fstab.rules ${DESTDIR}/etc/udev/rules.d/85-mount-fstab.rules 16 16 install -m ${RULESMODE} 95-debug.rules ${DESTDIR}/etc/udev/rules.d/95-debug.rules 17 17 … … 20 20 install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/lib/udev/load_floppy_module.sh 21 21 install -m ${SCRIPTMODE} ide.sh ${DESTDIR}/lib/udev/ide.sh 22 install -m ${SCRIPTMODE} firmware.sh ${DESTDIR}/lib/udev/firmware.sh23 22 install -m ${SCRIPTMODE} input.sh ${DESTDIR}/lib/udev/input.sh 24 23 install -m ${SCRIPTMODE} mount.sh ${DESTDIR}/lib/udev/mount.sh -
udev/show_event_log
r691a65c r103e3eb 69 69 70 70 # list all events 71 (read x; while read x s x x x c x; read x s2 x a d; do echo $s $s2 $a $c $d; done) < <( sed -n "s/^.*udev.*\(seq [0-9]* [qf].*$\)/\1/p" /var/log/messages | sort -n -k 2 | tr -d ',' ) 71 (read x; while read x s x x x c x; read x s2 x a d; do echo $s $s2 $a $c $d; done) < <( sed -n "s/^.*udev.*\(seq [0-9]* [qf].*$\)/\1/p" /var/log/messages | sort -n -k 2 | tr -d ',' ) 72 72 73 73 ./show_event_log 1 last > boot.events.log.`date +%A_%H:%M` 2> boot.events.list.`date +%A_%H:%M` -
udev/udev
r691a65c r103e3eb 27 27 for i in $list; do 28 28 case "$i" in 29 */device/uevent )29 */device/uevent|*\**) 30 30 # skip followed device symlinks 31 31 continue … … 74 74 trigger_device_events 75 75 76 # until we know how to do better, we wait for allevents to finish77 loop= 076 # until we know how to do better, just wait for _all_ events to finish 77 loop=300 78 78 while test -d /dev/.udev/queue; do 79 79 sleep 0.1; 80 test "$loop" -gt 300 &&break81 loop=$(($loop +1))80 test "$loop" -gt 0 || break 81 loop=$(($loop - 1)) 82 82 done 83 83 -
udev/udev.makechanges
r691a65c r103e3eb 1 1 Udev will need to be made with the following extras 2 2 3 extras/firmware_helper 3 4 extras/scsi_id 4 5 extras/volume_id
Note:
See TracChangeset
for help on using the changeset viewer.