Discussion:
udev debug
Kosa Attila
2012-01-12 07:19:47 UTC
Permalink
Hello!
Van egy usb-s szunetmentes, egy amd64-es Lenny-re kotve. Squeeze
alol portolva a nut, konfiguralva, mukodik minden. De neha
elveszti a kapcsolatot a gep az ups-sel, olyan, mintha az usb
kapcsolat szakadna meg (ugyanezt a jelenseget lehet eloidezni, ha
kihuzom az ups-bol az usb-kabelt). A /dev/bus/usb/001/
konyvtarban pedig novekszik az eszkoz szama, amit letrehoz a
rendszer az ujboli csatlakozaskor. A nut-hoz van egy .rules fajl,
amely alapjan a nut csoportnak kell adnia a letrehozott
eszkozfajlt. Ennyi a fajl relevans tartalma:

ACTION!="add|change", GOTO="nut-usbups_rules_end"
SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
BUS!="usb", GOTO="nut-usbups_rules_end"

LABEL="nut-usbups_rules_real"
# Belkin F6C1200-UNV - blazer_usb
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"

LABEL="nut-usbups_rules_end"

A gond az, hogy nem allitja be a nut csoportot, amikor ujra
csatlakozik az eszkoz. Ha lefuttatok egy "udevadm trigger"
parancsot, akkor beallitja. Az udev debug uzemmodjabol semmi sem
derult ki szamomra. Probaltam a sorrenden valtoztatni, tettem a
fenti .rules fajlt legelore es leghatra is, de egyik esetben sem
mukodott.

Hogy lehet kideriteni, hogy miert nem mukodik magatol, csak
trigger hatasara?
--
Udvozlettel
Zsiga
Kosa Attila
2012-01-12 08:00:51 UTC
Permalink
Post by Kosa Attila
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
A gond az, hogy nem allitja be a nut csoportot, amikor ujra
csatlakozik az eszkoz. Ha lefuttatok egy "udevadm trigger"
parancsot, akkor beallitja. Az udev debug uzemmodjabol semmi sem
derult ki szamomra. Probaltam a sorrenden valtoztatni, tettem a
fenti .rules fajlt legelore es leghatra is, de egyik esetben sem
mukodott.
Tettem az ATTR sor vegere egy RUN+ opciot, ahol futtattam egy
szkriptet, amely csinalt egy ls-t a /dev alatti megfelelo
konyvtarrol. Es ebbol kiderult, hogy beallitodik a nut csoport,
de valaki atallitja root-ra... Megint atnevezgettem a .rules
fajlt, hogy mas szammal kezdodjon, elobb vagy kesobb fusson le,
de teljesen mindegy volt, mindig fejbenyomta valaki a
csoportbeallitast. Csinaltam strace-t, 45M lett, ugyhogy van
olvasnivalom. De ha valakinek eszebe jutna valami, hogy ne
kelljen vegigolvasnom, megkoszonnem :)
--
Udvozlettel
Zsiga
Kosa Attila
2012-01-12 08:40:11 UTC
Permalink
Post by Kosa Attila
Post by Kosa Attila
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
A gond az, hogy nem allitja be a nut csoportot, amikor ujra
csatlakozik az eszkoz. Ha lefuttatok egy "udevadm trigger"
parancsot, akkor beallitja. Az udev debug uzemmodjabol semmi sem
derult ki szamomra. Probaltam a sorrenden valtoztatni, tettem a
fenti .rules fajlt legelore es leghatra is, de egyik esetben sem
mukodott.
Tettem az ATTR sor vegere egy RUN+ opciot, ahol futtattam egy
loggeret, amely csinalt egy ls-t a /dev alatti megfelelo
konyvtarrol. Es ebbol kiderult, hogy beallitodik a nut csoport,
Minden .rules fajl vegere tettem egy RUN+ opciot, amely a meghivo
rules fajl nevet, valamint a kerdeses eszkozfajlrol egy ls
kimenetet beletesz a syslog-ba. Itt egy log arrol, amikor
bedugasra kerult az ups usb kabele:

Jan 12 09:25:55 gepnev [246458.913317] usb 1-2: new low speed USB device using uhci_hcd and address 23
Jan 12 09:25:55 gepnev [246459.085307] usb 1-2: configuration #1 chosen from 1 choice
Jan 12 09:25:55 gepnev [246459.135670] hiddev96hidraw0: USB HID v1.00 Device [Cypress Semiconductor USB to Serial] on usb-0000:00:1a.0-2
Jan 12 09:25:55 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 gepnev [246459.146126] usb 1-2: New USB device found, idVendor=0665, idProduct=5161
Jan 12 09:25:55 gepnev [246459.146131] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 12 09:25:55 gepnev [246459.146135] usb 1-2: Product: USB to Serial
Jan 12 09:25:55 gepnev [246459.146138] usb 1-2: Manufacturer: Cypress Semiconductor
Jan 12 09:25:55 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_dmsetup.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_dmsetup.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_dmsetup.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-cd.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-net.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-cd.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-cd.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-net.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-net.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 80-drivers.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 80-drivers.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 80-drivers.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 90-hal.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 91-permissions.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 95-late.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 90-hal.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 99-nut-usbups.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_alsa-utils.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 90-hal.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 91-permissions.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 91-permissions.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 95-late.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libpisock9.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 95-late.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_alsa-utils.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane-extras.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_alsa-utils.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libpisock9.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libpisock9.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane-extras.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane-extras.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_libsane.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-storage.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_dmsetup.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-cd.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 70-persistent-net.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 80-drivers.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:55 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root nut 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 10-vboxdrv.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 50-udev.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-input.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage-tape.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 60-persistent-v4l.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_dmsetup.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 65_mdadm.vol_id.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-cd.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 70-persistent-net.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-cd-aliases-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 75-persistent-net-generator.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 80-drivers.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 84-linux-wlan-ng.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 90-hal.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 91-permissions.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger 95-late.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_alsa-utils.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libpisock9.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane-extras.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_libsane.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_virtualbox-ose.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023
Jan 12 09:25:56 logger z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root root 189, 22 Jan 12 09:25 /dev/bus/usb/001/023

Mi a logika ebben? Latszolag osszevissza futnak a rules fajlok,
mit sem szamit, hogy milyen szammal kezdodik a neve...
--
Udvozlettel
Zsiga
Salamon Attila
2012-01-12 09:17:18 UTC
Permalink
Post by Kosa Attila
Post by Kosa Attila
Post by Kosa Attila
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
A gond az, hogy nem allitja be a nut csoportot, amikor ujra
csatlakozik az eszkoz. Ha lefuttatok egy "udevadm trigger"
parancsot, akkor beallitja. Az udev debug uzemmodjabol semmi
sem derult ki szamomra. Probaltam a sorrenden valtoztatni,
tettem a fenti .rules fajlt legelore es leghatra is, de egyik
esetben sem mukodott.
Mivel ez a ++ lista, csak halkan kérdem meg, hogy az `udevadm test`
megvolt-e már? Nem minden esetre ad megoldást, de egy próbát megér.

# udevadm test /class/usb/lp0
[...]
udev_rules_apply_to_event: LINK 'char/180:0' /lib/udev/rules.d/50-
udev-default.rules:2
udev_rules_apply_to_event: NAME 'usb/lp0' /lib/udev/rules.d/50-udev-
default.rules:22
[...]
udev_rules_apply_to_event: RUN
'socket:@/org/freedesktop/hal/udev_event' /lib/udev/rules.d/90-
hal.rules:2
udev_rules_apply_to_event: GROUP 7 /lib/udev/rules.d/91-
permissions.rules:26
udev_rules_apply_to_event: MODE 0666
/etc/udev/rules.d/99_smfpautoconf_samsung.rules:8
udev_rules_apply_to_event: MODE 0666
/etc/udev/rules.d/99_smfpautoconf_samsung.rules:10
[...]


Pl. /lib/udev/rules.d/91-permissions.rules 26. sora:
KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb", GROUP="lp"

# getent group lp | cut -d':' -f3
7
Post by Kosa Attila
Post by Kosa Attila
Tettem az ATTR sor vegere egy RUN+ opciot, ahol futtattam egy
loggeret, amely csinalt egy ls-t a /dev alatti megfelelo
konyvtarrol. Es ebbol kiderult, hogy beallitodik a nut csoport,
Minden .rules fajl vegere tettem egy RUN+ opciot, amely a meghivo
rules fajl nevet, valamint a kerdeses eszkozfajlrol egy ls
kimenetet beletesz a syslog-ba. Itt egy log arrol, amikor
[...]
Post by Kosa Attila
Jan 12 09:25 /dev/bus/usb/001/023 Jan 12 09:25:56 logger
z60_xserver-xorg-input-wacom.rules: crw-rw-r-- 1 root nut 189, 22
Jan 12 09:25 /dev/bus/usb/001/023 Jan 12 09:25:56 logger
60-persistent-storage.rules: crw-rw-r-- 1 root root 189, 22
Esetleg nézd végig, hogy amelyik rules-nál visszaváltozik root-ra,
milyen illeszkedő szabályok vannak.
Látom, ebből is van pár, szóval nem lesz egyszerű.
Post by Kosa Attila
Mi a logika ebben? Latszolag osszevissza futnak a rules fajlok,
mit sem szamit, hogy milyen szammal kezdodik a neve...
Szerintem ez azért van, mert több "esemény" generálódik az eszköz
rádugásakor és mindegyikhez lefuttatja az illeszkedő szabályokat.
--
Sala
Kosa Attila
2012-01-12 12:43:30 UTC
Permalink
Post by Salamon Attila
Post by Kosa Attila
Post by Kosa Attila
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
A gond az, hogy nem allitja be a nut csoportot, amikor ujra
csatlakozik az eszkoz. Ha lefuttatok egy "udevadm trigger"
parancsot, akkor beallitja. Az udev debug uzemmodjabol semmi
sem derult ki szamomra. Probaltam a sorrenden valtoztatni,
tettem a fenti .rules fajlt legelore es leghatra is, de egyik
esetben sem mukodott.
Mivel ez a ++ lista, csak halkan kérdem meg, hogy az `udevadm test`
megvolt-e már? Nem minden esetre ad megoldást, de egy próbát megér.
# udevadm test /class/usb/lp0
Nem volt, mert nem birtam rajonni, hogy mit kellene megadni neki.
Az eszkozfajl a /dev/bus/usb/001/ utvonalon jon letre, itt van
egy 001 nevu fajl, es e melle hozza letre 002-tol kezdodoen az uj
fajlt (mindig csak egyet, es folyamatosan novekszik a szama
minden bedugasnal).
Post by Salamon Attila
Esetleg nézd végig, hogy amelyik rules-nál visszaváltozik root-ra,
milyen illeszkedő szabályok vannak.
Látom, ebből is van pár, szóval nem lesz egyszerű.
De ugy erzem, hogy hiaba, mert ha ennyire osszevissza futtatja a
rules fajlokat, akkor tehetem akarhova a sorban a megfelelo
szabalyt, semmi garancia nincs, hogy az fog lefutni utoljara,
amelyik helyesen allitja be... Probalkoztam az udevadm
max_childs, max_child_running opcioival is, de azok sem vezettek
eredmenyre. Illetve neha ugy tunt, hogy igen, de par proba alatt
kiderult, hogy nem mindig a megfelelo eredmenyt produkalja.
Post by Salamon Attila
Post by Kosa Attila
Mi a logika ebben? Latszolag osszevissza futnak a rules fajlok,
mit sem szamit, hogy milyen szammal kezdodik a neve...
Szerintem ez azért van, mert több "esemény" generálódik az eszköz
rádugásakor és mindegyikhez lefuttatja az illeszkedő szabályokat.
A man szerint az udevadm trigger alapertelmezesben egy add
esemenyt general. Azt nem ertem, hogy ha a radugas es a trigger
is ugyanazt az esemenyt generalja, akkor miert csak az egyik (a
trigger) eseten mukodik jol...
--
Udvozlettel
Zsiga
Salamon Attila
2012-01-12 13:14:03 UTC
Permalink
Post by Kosa Attila
Post by Salamon Attila
Mivel ez a ++ lista, csak halkan kérdem meg, hogy az `udevadm
test` megvolt-e már? Nem minden esetre ad megoldást, de egy
próbát megér.
# udevadm test /class/usb/lp0
Nem volt, mert nem birtam rajonni, hogy mit kellene megadni neki.
Az eszkozfajl a /dev/bus/usb/001/ utvonalon jon letre, itt van
egy 001 nevu fajl, es e melle hozza letre 002-tol kezdodoen az uj
fajlt (mindig csak egyet, es folyamatosan novekszik a szama
minden bedugasnal).
Én intuitív módon szoktam kitalálni. :-)
A lényeg, hogy a /sys/class alatt kell megtalálni a helyét és a /sys-t
le kell hagyni az elejéről.

A korrektebb megoldás:
# udevadm info --attribute-walk --name=/dev/usb/lp0
[...]
looking at device
'/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.1/usb/lp0':
KERNEL=="lp0"
SUBSYSTEM=="usb"
DRIVER==""
[...]

# udevadm test \
'/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.1/usb/lp0'
--
Sala
Loading...