--- /dev/null
+# do not edit this file, it will be overwritten on update
+
+ACTION!="add", GOTO="drivers_end"
+
+# Pandora hack:
+# On later kernels we have lots of modules and running modprobe becomes
+# expensive and slows boot a lot.
+# Prevent it from being run for stuff we know is compiled in
+# pandora's kernel or is not needed in general
+ACTION=="add", ENV{MODALIAS}=="platform:*" GOTO="drivers_end"
+ACTION=="add", ENV{MODALIAS}=="mmc:block" GOTO="drivers_end"
+ACTION=="add", ENV{MODALIAS}=="sdio:c00v104Cd9066" GOTO="drivers_end"
+ACTION=="add", DEVPATH=="*twl4030_keypad*" GOTO="drivers_end"
+ACTION=="add", DEVPATH=="*twl4030_pwrbutton*" GOTO="drivers_end"
+ACTION=="add", DEVPATH=="*gpio-keys*" GOTO="drivers_end"
+ACTION=="add", DEVPATH=="*/i2c-3/3-006[67]*" GOTO="drivers_end"
+
+DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"
+SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe -b tifm_sd"
+SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe -b tifm_ms"
+SUBSYSTEM=="memstick", RUN+="/sbin/modprobe -b --all ms_block mspro_block"
+SUBSYSTEM=="i2o", RUN+="/sbin/modprobe -b i2o_block"
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -b sg"
+SUBSYSTEM=="module", KERNEL=="parport_pc", RUN+="/sbin/modprobe -b ppdev"
+
+LABEL="drivers_end"
# reserve fb2 for the system
KERNEL=="fb2", ACTION=="add", MODE="0600"
-
-# On later kernels we have lots of modules and running modprobe becomes
-# expensive and slows boot a lot.
-# Prevent it from being run for stuff we know is compiled in
-# pandora's kernel or is not needed in general
-ACTION=="add", ENV{MODALIAS}=="platform:*" RUN="/bin/true"
-ACTION=="add", ENV{MODALIAS}=="mmc:block" RUN="/bin/true"
-ACTION=="add", ENV{MODALIAS}=="sdio:c00v104Cd9066" RUN="/bin/true"
-ACTION=="add", DEVPATH=="*twl4030_keypad*" RUN="/bin/true"
-ACTION=="add", DEVPATH=="*twl4030_pwrbutton*" RUN="/bin/true"
-ACTION=="add", DEVPATH=="*gpio-keys*" RUN="/bin/true"
-ACTION=="add", DEVPATH=="*/i2c-3/3-006[67]*" RUN="/bin/true"
the hotplug package and requires a kernel not older than 2.6.12."
LICENSE = "GPLv2+"
-PR = "r22"
+PR = "r23"
# Untested
DEFAULT_PREFERENCE = "-1"
file://mount.sh \
file://network.sh \
file://local.rules \
+ file://80-drivers.rules \
file://default \
file://init \
file://cache \
install -m 0644 ${WORKDIR}/mount.blacklist ${D}${sysconfdir}/udev/
install -m 0644 ${WORKDIR}/local.rules ${D}${sysconfdir}/udev/rules.d/local.rules
+ install -m 0644 ${WORKDIR}/80-drivers.rules ${D}${sysconfdir}/udev/rules.d/80-drivers.rules
install -m 0644 ${WORKDIR}/permissions.rules ${D}${sysconfdir}/udev/rules.d/permissions.rules
install -m 0644 ${WORKDIR}/run.rules ${D}${sysconfdir}/udev/rules.d/run.rules
install -m 0644 ${WORKDIR}/udev.rules ${D}${sysconfdir}/udev/rules.d/udev.rules