- cd $(DIR_APP) && tar jxf $(DIR_DL)/udev-config-6.2.tar.bz2
- cd $(DIR_APP) && patch -Np0 -i $(DIR_SRC)/src/patches/udev-config-6.2_persistent-storage-fix.patch
- cd $(DIR_APP) && patch -Np0 -i $(DIR_SRC)/src/patches/udev-config-6.2_remove-lfs-usb-rule.patch
- install -dv /lib/{firmware,udev/devices/{pts,shm}}
- echo "Put device firmwares here ..." > /lib/firmware/dirinfo
- mknod -m0666 /lib/udev/devices/null c 1 3
- ln -sv /proc/self/fd /lib/udev/devices/fd
- ln -sv /proc/self/fd/0 /lib/udev/devices/stdin
- ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
- ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
- ln -sv /proc/kcore /lib/udev/devices/core
- cd $(DIR_APP) && make $(MAKETUNING) EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \
- extras/firmware extras/floppy extras/path_id \
- extras/scsi_id extras/usb_id extras/volume_id"
- cd $(DIR_APP) && make DESTDIR=/ EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id \
- extras/firmware extras/floppy extras/path_id \
- extras/scsi_id extras/usb_id extras/volume_id" install
- cd $(DIR_APP) && cp -v udev-config-6.2/[0-9]* /etc/udev/rules.d/
- cp -rf $(DIR_SRC)/config/udev/10-dvb.rules /etc/udev/rules.d/
- cp -rf $(DIR_SRC)/config/udev/55-scsi-cdrom.rules /etc/udev/rules.d/
- chmod 644 /etc/udev/rules.d/10-dvb.rules
- chmod 644 /etc/udev/rules.d/55-scsi-cdrom.rules
- cp -rf $(DIR_SRC)/config/udev/dvb.sh /etc/udev/
- chmod 755 /etc/udev/dvb.sh
+ install -dv /lib/firmware
+
+ cd $(DIR_APP) && make -f udev-lfs-$(VER)-1/Makefile.lfs $(MAKETUNING)
+ cd $(DIR_APP) && make -f udev-lfs-$(VER)-1/Makefile.lfs install
+
+ # Make some compat symlinks
+ ln -sf /lib/udev/udevd /sbin/udevd
+ ln -sf /sbin/udevadm /bin/udevadm
+
+ # Disable net generator rule. This does not work with the setup.
+ rm -f /lib/udev/rules.d/75-persistent-net-generator.rules
+ rm -f /lib/udev/rules.d/80-net-name-slot.rules
+
+ # Create rule file for the setup