cezarlamann
(usa OpenSuSE)
Enviado em 22/07/2009 - 17:43h
oi renato!
desde já agradeço pela atenção.
bem, eu estive mexendo lá no diretorio do udev e não encontrei o 64....
lá existem:
024_hpmud.rules 75-cd-aliases-generator.rules
025_libgphoto2.rules 75-persistent-net-generator.rules
025_logitechmouse.rules 80-drivers.rules
11-hplj10xx.rules 85_dmraid.rules
45-hplip.rules 90-hal.rules
50-udev.rules 91-permissions.rules
55-hpmud.rules 95-late.rules
60-persistent-input.rules libmtp7.rules
60-persistent-storage.rules z60_alsa-utils.rules
60-persistent-storage-tape.rules z60_libpisock9.rules
60-persistent-v4l.rules z60_libsane-extras.rules
65_dmsetup.rules z60_libsane.rules
70-persistent-cd.rules z60_xserver-xorg-input-wacom.rules
70-persistent-net.rules
imaginando algo sobre o dmraid, tentei achar algo no 65, 80 e 85, mas neles estão apenas algumas regras com base em variáveis, e não uma lista estática (como teríamos no fstab)...
conteudo do 85_dmraid.rules:
# This file causes drives with dmraid arrays to be checked, and if all
# drives are present, brought up.
# See udev(8) for syntax
SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_TYPE}=="disk", ENV{ID_FS_USAGE}=="raid", KERNEL=="hd[a-z]|sd[a-z]", \
RUN+="/sbin/dmraid-activate %k"
conteudo do 80-drivers.rules:
ACTION!="add", GOTO="hotplug_not_add_event"
# check if the device has already been claimed by a driver
ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
# this driver is broken and should not be loaded automatically on kernels
# < 2.6.21 (see #398962)
SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", GOTO="hotplug_driver_loaded"
# load the drivers
ENV{MODALIAS}=="?*", \
RUN+="/sbin/modprobe --use-blacklist $env{MODALIAS}"
SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", \
RUN+="/bin/sh -c '/sbin/modprobe --use-blacklist --all $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
# rules for subsystems which lack proper hotplug support
SUBSYSTEM=="i2o", RUN+="/sbin/modprobe i2o_block"
SUBSYSTEM=="mmc", RUN+="/sbin/modprobe mmc_block"
SUBSYSTEM=="memstick", RUN+="/sbin/modprobe --all ms_block mspro_block"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe tifm_sd"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe tifm_ms"
# needed for kernels < 2.6.22
SUBSYSTEM=="scsi_device", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe osst", \
ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}=="Onstream", ATTRS{model}=="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}!="Onstream"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="8", RUN+="/sbin/modprobe ch"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", TEST!="[module/sg]", \
RUN+="/sbin/modprobe sg"
SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
# From here on follows the hotplug agents which do not load modules
LABEL="hotplug_driver_loaded"
# FIXME: does a sane default exist?
#SUBSYSTEM=="scsi_device", ATTRS{idVendor}=="...", \
# RUN+="scsi-re-add"
SUBSYSTEM=="firmware", RUN+="firmware.agent"
LABEL="hotplug_not_add_event"
SUBSYSTEM=="net", RUN+="net.agent"
SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
# Log every event to /dev/hotplug.log (for debugging).
#RUN+="logger.agent"
ACTION!="add", GOTO="hotplug_not_add_event"
# check if the device has already been claimed by a driver
ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
# this driver is broken and should not be loaded automatically on kernels
# < 2.6.21 (see #398962)
SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", GOTO="hotplug_driver_loaded"
# load the drivers
ENV{MODALIAS}=="?*", \
RUN+="/sbin/modprobe --use-blacklist $env{MODALIAS}"
SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", \
RUN+="/bin/sh -c '/sbin/modprobe --use-blacklist --all $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
# rules for subsystems which lack proper hotplug support
SUBSYSTEM=="i2o", RUN+="/sbin/modprobe i2o_block"
SUBSYSTEM=="mmc", RUN+="/sbin/modprobe mmc_block"
SUBSYSTEM=="memstick", RUN+="/sbin/modprobe --all ms_block mspro_block"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe tifm_sd"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe tifm_ms"
# needed for kernels < 2.6.22
SUBSYSTEM=="scsi_device", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe osst", \
ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}=="Onstream", ATTRS{model}=="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}!="Onstream"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="8", RUN+="/sbin/modprobe ch"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", TEST!="[module/sg]", \
RUN+="/sbin/modprobe sg"
SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
# From here on follows the hotplug agents which do not load modules
LABEL="hotplug_driver_loaded"
# FIXME: does a sane default exist?
#SUBSYSTEM=="scsi_device", ATTRS{idVendor}=="...", \
# RUN+="scsi-re-add"
SUBSYSTEM=="firmware", RUN+="firmware.agent"
LABEL="hotplug_not_add_event"
SUBSYSTEM=="net", RUN+="net.agent"
SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
# Log every event to /dev/hotplug.log (for debugging).
#RUN+="logger.agent"
ACTION!="add", GOTO="hotplug_not_add_event"
# check if the device has already been claimed by a driver
ENV{DRIVER}=="?*", SUBSYSTEM!="input", GOTO="hotplug_driver_loaded"
# this driver is broken and should not be loaded automatically on kernels
# < 2.6.21 (see #398962)
SUBSYSTEM=="platform", ENV{MODALIAS}=="i82365", GOTO="hotplug_driver_loaded"
# load the drivers
ENV{MODALIAS}=="?*", \
RUN+="/sbin/modprobe --use-blacklist $env{MODALIAS}"
SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", \
RUN+="/bin/sh -c '/sbin/modprobe --use-blacklist --all $$(while read id; do echo pnp:d$$id; done < /sys$devpath/id)'"
SUBSYSTEM=="pcmcia_socket", RUN+="/sbin/modprobe pcmcia"
# rules for subsystems which lack proper hotplug support
SUBSYSTEM=="i2o", RUN+="/sbin/modprobe i2o_block"
SUBSYSTEM=="mmc", RUN+="/sbin/modprobe mmc_block"
SUBSYSTEM=="memstick", RUN+="/sbin/modprobe --all ms_block mspro_block"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe tifm_sd"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe tifm_ms"
# needed for kernels < 2.6.22
SUBSYSTEM=="scsi_device", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe osst", \
ATTRS{vendor}=="Onstream", ATTRS{model}!="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}=="Onstream", ATTRS{model}=="ADR*"
SUBSYSTEM=="scsi_device", ATTRS{type}=="1", RUN+="/sbin/modprobe st", \
ATTRS{vendor}!="Onstream"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[45]", RUN+="/sbin/modprobe sr_mod"
SUBSYSTEM=="scsi_device", ATTRS{type}=="8", RUN+="/sbin/modprobe ch"
SUBSYSTEM=="scsi_device", ATTRS{type}=="[235689]", TEST!="[module/sg]", \
RUN+="/sbin/modprobe sg"
SUBSYSTEM=="ide", ATTR{media}=="tape", RUN+="/sbin/modprobe ide-scsi"
# From here on follows the hotplug agents which do not load modules
LABEL="hotplug_driver_loaded"
# FIXME: does a sane default exist?
#SUBSYSTEM=="scsi_device", ATTRS{idVendor}=="...", \
# RUN+="scsi-re-add"
SUBSYSTEM=="firmware", RUN+="firmware.agent"
LABEL="hotplug_not_add_event"
SUBSYSTEM=="net", RUN+="net.agent"
SUBSYSTEM=="atm", RUN+="dsl-modem.agent"
# Log every event to /dev/hotplug.log (for debugging).
#RUN+="logger.agent"
...