- Timestamp:
- Feb 21, 2006, 2:31:06 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:
- 3d85c53
- Parents:
- 52330ef
- Location:
- udev
- Files:
-
- 1 added
- 1 deleted
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
udev/05-udev-early.rules
r52330ef r26b1cc1 15 15 ######################################################################## 16 16 17 # sysfs is populated after the event is sent18 #19 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"20 ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"21 22 17 # ignore these events until someone needs them 23 18 # 24 19 SUBSYSTEM=="drivers", OPTIONS="ignore_device" 25 20 SUBSYSTEM=="module", OPTIONS="ignore_device" 21 22 # sysfs is populated after the event is sent 23 # 24 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus" 25 ACTION=="add", SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt" 26 ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address" -
udev/50-udev.rules
r52330ef r26b1cc1 61 61 KERNEL=="uinput", NAME="input/%k", MODE="0600" 62 62 KERNEL=="lirc0", NAME="%k", SYMLINK+="lirc" 63 KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh"64 63 65 64 # printer -
udev/60-persistent-disk.rules
r52330ef r26b1cc1 1 1 ######################################################################## 2 2 # 3 # Description : 60-persistent .rules3 # Description : 60-persistent-disk.rules 4 4 # 5 5 # Authors : Based on Open Suse Udev Rules -
udev/Makefile
r52330ef r26b1cc1 18 18 install -m ${RULESMODE} 50-udev.rules ${DESTDIR}/etc/udev/rules.d/50-udev.rules 19 19 install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules 20 install -m ${RULESMODE} 60-persistent.rules ${DESTDIR}/etc/udev/rules.d/60-persistent.rules 20 install -m ${RULESMODE} 60-persistent-disk.rules ${DESTDIR}/etc/udev/rules.d/60-persistent-disk.rules 21 install -m ${RULESMODE} 61-persistent-input.rules ${DESTDIR}/etc/udev/rules.d/60-persistent-input.rules 21 22 install -m ${RULESMODE} 90-user.rules ${DESTDIR}/etc/udev/rules.d/90-user.rules 22 23 install -m ${RULESMODE} 95-debug.rules ${DESTDIR}/etc/udev/rules.d/95-debug.rules … … 30 31 install -m ${SCRIPTMODE} load_floppy_module.sh ${DESTDIR}/lib/udev/load_floppy_module.sh 31 32 install -m ${SCRIPTMODE} check-cdrom.sh ${DESTDIR}/lib/udev/check-cdrom.sh 32 install -m ${SCRIPTMODE} input.sh ${DESTDIR}/lib/udev/input.sh33 33 34 34 boot: -
udev/show_event_log
r52330ef r26b1cc1 16 16 ######################################################################## 17 17 # 18 # extract udev log messages from a syslog file 19 # show_event_log <first> [<last> [<list of event types>] ] 20 # 18 21 # known events are: 19 # ac97 acpi block cpu drivers edd firmware graphics i2c-adapter i825920 # ieee1394_protocol input ioapic irqrouter lapic mem misc module namespace21 # pci_bus pci_express pcmcia pcmcia_socket platform pnp printer scsi scsi_host22 # serio sound timer timer_pit tty usb usb_device usb_host vc22 # ac97 acpi block cpu drivers edd firmware graphics i2c-adapter i8259 23 # ieee1394_protocol input ioapic irqrouter lapic mem misc module namespace 24 # pci_bus pci_express pcmcia pcmcia_socket platform pnp printer scsi scsi_host 25 # serio sound timer timer_pit tty usb usb_device usb_host vc 23 26 # 27 # GPL, version 2 28 # Christian Zoz <zoz@suse.de> 29 # 30 24 31 EXCLUDE_SUBS="acpi cpu edd mem namespace pci_bus tty vc" 25 # EXCLUDE_SUBS="ac97 acpi cpu drivers edd graphics i2c-adapter mem i8259 ioapic irqrouter lapic mem module namespace platform pnp pci_bus tty vc"26 32 MESSAGES=${MESSAGES:-/var/log/messages} 27 #grep udevd /var/log/messages | grep -v "pass_env\|geventrec\|hal.hot\|received"28 33 29 34 show_event() { 30 35 local SN PID SUBS 31 36 declare -i SN=$1 PID 32 # read PID ACT SUBS < <(sed -n "s/^.*seq $SN forked, pid \[\([0-9]*\)\], \([^,]*\),.*$/\1 \2/p;T;q" $MESSAGES)33 37 read PID ACT SUBS < <(sed -n "s/^.*seq $SN forked, pid \[\([0-9]*\)\], '\([^']*\)' '\([^']*\)'.*$/\1 \2 \3/p;T;q" $MESSAGES) 34 38 if [ $PID == 0 ] ; then … … 57 61 declare -i START=$1 STOP=$2 58 62 if [ "$2" == last ] ; then 59 read STOP < <(grep -o "udev_done.*exit" $MESSAGES | cut -d" " -f3 | sort -n | tail -1) 63 read STOP_STRING < <(grep -o "udev_done.*exit" $MESSAGES | cut -d" " -f3 | sort -n | tail -1) 64 STOP=`echo $STOP_STRING | sed 's/^[^0-9]*\([0-9]\+\).*$/\1/'` 60 65 fi 61 66 test $START -lt 0 -a $STOP -gt 0 && START=$((STOP+START+1)) … … 65 70 show_event $n 66 71 done 67 72 68 73 exit 69 74
Note:
See TracChangeset
for help on using the changeset viewer.