local file UDEV_CFG="$INSTALL_ROOT/etc/udev" &&

install -m 755 -d "$INSTALL_ROOT/sys" \
                  "$UDEV_CFG/rules.d" &&

for file in $SPELL_DIRECTORY/rules/*; do
  install_config_file $file "$UDEV_CFG/rules.d/$(basename $file)"
done &&

# Aliases for modprobe
install -m 755 -d "$INSTALL_ROOT/etc/modprobe.d" &&

install_config_file "$SPELL_DIRECTORY/modprobe.aliases" \
                    "$INSTALL_ROOT/etc/modprobe.d/udev.conf" &&

install_config_file "$SPELL_DIRECTORY/udev.missing" \
                    "$UDEV_CFG/udev.missing" &&

# These are used by devices init script, udev.conf also by udev
install_config_file "$SPELL_DIRECTORY/udev.conf" \
                    "$UDEV_CFG/udev.conf" &&
make_single &&
default_install &&
make_normal &&

ln -sf "$TRACK_ROOT/sbin/udevadm" "$INSTALL_ROOT/usr/bin/udevinfo"
