Changeset 1f7827a2 for udev


Ignore:
Timestamp:
Feb 21, 2006, 2:03:02 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
cc00b22
Parents:
96204b1
Message:

r1012@server (orig r1010): jim | 2006-01-06 10:33:15 -0800

r1291@server: jim | 2006-01-06 10:31:33 -0800
Updates based on Alex's findings. Thank You Alex


Location:
udev
Files:
2 added
2 deleted
9 edited
1 moved

Legend:

Unmodified
Added
Removed
  • udev/05-udev-early.rules

    r96204b1 r1f7827a2  
    1717# sysfs is populated after the event is sent
    1818#
    19 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
    20 ACTION=="add", SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
     19ACTION=="add",  DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
     20ACTION=="add",  SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
    2121
    2222# ignore these events until someone needs them
  • udev/35-helper.rules

    • Property mode changed from 100755 to 100644
    r96204b1 r1f7827a2  
    1 #!/bin/sh
    21########################################################################
    32#
    4 # Description : udev.count_events
     3# Description : 35-helper.rules
    54#
    65# Authors     : Based on Open Suse Udev Rules
     
    87#
    98# Adapted to  : Jim Gifford
    10 # LFS
     9# LFS         : Alexander E. Patrakov
    1110#
    12 # Version     : 00.00
     11# Version     : 00.01
    1312#
    14 # Notes       : Wait for all current udev events to finish
     13# Notes       :
    1514#
    1615########################################################################
    1716
    18 loop=100
    19 while test -d /dev/.udev/queue; do
    20     sleep 0.1;
    21     test "$loop" -gt 0 || exit 1
    22     loop=$(($loop - 1))
    23 done
    24 exit 0
     17# kernel firmware loader
     18SUBSYSTEM=="firmware",  ACTION=="add", RUN+="firmware_helper"
     19
     20
  • udev/50-udev.rules

    r96204b1 r1f7827a2  
    11########################################################################
    22#
    3 # Description : Base Udev Rules Set
     3# Description : 50-udev.rules
    44#
    55# Authors     : Based on Open Suse Udev Rules
     
    77#
    88# Adapted to  : Jim Gifford
    9 # LFS
     9# LFS         : Alexander E. Patrakov
    1010#
    1111# Version     : 00.01
     
    1515########################################################################
    1616
    17 # hotplug
    18 ENV{MODALIAS}=="?*",    RUN+="/sbin/modprobe $env{MODALIAS}"
    19 
    2017# console
    21 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
    22 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
    23 KERNEL=="vcs*",                 NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
    24 KERNEL=="vcsa*",                NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
    25 KERNEL=="tty",                  NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
    26 KERNEL=="tty[0-9]*",            NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
    27 KERNEL=="console",              NAME="%k", MODE="600", OPTIONS="last_rule"
    28 KERNEL=="ptmx",                 NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
     18KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]",     NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
     19KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]",     NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
     20KERNEL=="vcs*",                                         NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
     21KERNEL=="tty",                                          NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
     22KERNEL=="tty[0-9]*",                                    NAME="%k", GROUP="tty", MODE="620", OPTIONS="last_rule"
     23KERNEL=="console",                                      NAME="%k", MODE="600", OPTIONS="last_rule"
     24KERNEL=="ptmx",                                         NAME="%k", GROUP="tty", MODE="666", OPTIONS="last_rule"
    2925
    3026# serial devices
     
    3632KERNEL=="hvsi*",                NAME="%k", GROUP="uucp"
    3733KERNEL=="iseries/vtty*",        NAME="%k", GROUP="uucp"
    38 KERNEL=="ttyUSB*", SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
     34KERNEL=="ttyUSB*",              SYSFS{product}=="[Pp]alm*Handheld*", SYMLINK+="pilot"
    3935
    4036# video/graphics
     
    4642KERNEL=="vttuner*",             NAME="%k", GROUP="video"
    4743KERNEL=="nvidia*",              NAME="%k", GROUP="video"
    48 KERNEL=="nvidiactl*",           NAME="%k", GROUP="video"
    4944KERNEL=="video0",               SYMLINK+="video"
    5045KERNEL=="radio0",               SYMLINK+="radio"
     
    6358KERNEL=="uinput",               NAME="input/%k", MODE="0600"
    6459KERNEL=="lirc0",                NAME="%k", SYMLINK+="lirc"
    65 KERNEL=="input[0-9]*", ACTION=="add", RUN+="input.sh"
     60KERNEL=="input[0-9]*",          ACTION=="add", RUN+="input.sh"
    6661
    6762# printer
     
    8277# 183 = /dev/hwrng        Generic random number generator
    8378KERNEL=="hw_random",            NAME="hwrng", SYMLINK+="%k"
     79
    8480# 219 /dev/modems/mwave MWave modem firmware upload
    8581KERNEL=="mwave",                NAME="modems/%k"
     82
    8683# 169 /dev/specialix_rioctl Specialix RIO serial control
    8784KERNEL=="rioctl",               NAME="specialix_rioctl", SYMLINK+="%k"
     85
    8886# 167 /dev/specialix_sxctl Specialix serial control
    8987KERNEL=="sxctl",                NAME="specialix_sxctl", SYMLINK+="%k"
    9088
    9189# network
    92 KERNEL=="tun", NAME="net/%k", MODE="0600"
     90KERNEL=="tun",                  NAME="net/%k", MODE="0600"
    9391
    9492# misc devices
     
    123121
    124122# fix floppy devices
    125 KERNEL=="nvram", ACTION=="add", RUN+="load_floppy_module.sh"
    126 KERNEL=="fd[0-9]*", ACTION=="add", SYSFS{device/cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{device/cmos} -m %M /dev/%k"
    127 KERNEL=="fd[0-9]*", ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
     123KERNEL=="fd[0-9]*",             ACTION=="add", SYSFS{device/cmos}=="*", RUN+="create_floppy_devices -c -t $sysfs{device/cmos} -m %M /dev/%k"
     124KERNEL=="fd[0-9]*",             ACTION=="remove", RUN+="/bin/rm -f $root/%k*"
    128125
    129126# block devices
    130 SUBSYSTEM=="block", GROUP="disk", MODE="0640"
     127SUBSYSTEM=="block",             GROUP="disk", MODE="0640"
    131128
    132129# sd:           0 TYPE_DISK, 7 TYPE_MOD, 14 TYPE_RBC
    133130# sr:           4 TYPE_WORM, 5 TYPE_ROM
    134131# st/osst:      1 TYPE_TAPE
    135 ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys/$DEVPATH/timeout'"
    136 ACTION=="add", SUBSYSTEM="scsi" , SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'"
    137 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
    138 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", SYSFS{device/vendor}=="On[sS]tream", RUN+="/sbin/modprobe osst"
    139 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="1", RUN+="/sbin/modprobe st"
    140 SUBSYSTEM=="scsi_device", ACTION=="add", SYSFS{device/type}=="[45]", RUN+="/sbin/modprobe sr_mod"
    141 SUBSYSTEM=="scsi_device", ACTION=="add", RUN+="/sbin/modprobe sg"
    142 
    143 # load IDE modules
    144 SUBSYSTEM=="ide", ACTION=="add", RUN+="ide.sh"
     132ACTION=="add",                  SUBSYSTEM="scsi" , SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys/$DEVPATH/timeout'"
     133ACTION=="add",                  SUBSYSTEM="scsi" , SYSFS{type}=="1", RUN+="/bin/sh -c 'echo 900 > /sys/$DEVPATH/timeout'"
    145134
    146135# device mapper
    147 KERNEL=="device-mapper", NAME="%k", SYMLINK+="mapper/control"
     136KERNEL=="device-mapper",        NAME="%k", SYMLINK+="mapper/control"
    148137
    149138# misc storage devices (non-block)
    150139KERNEL=="sg*",                  NAME="%k", GROUP="disk", MODE="640"
    151 KERNEL=="st*",                  NAME="%k", GROUP="disk"
    152 KERNEL=="nst*",                 NAME="%k", GROUP="disk"
     140KERNEL=="st*",                  NAME="%k", GROUP="tape"
     141KERNEL=="nst*",                 NAME="%k", GROUP="tape"
    153142KERNEL=="initrd",               NAME="%k", GROUP="disk"
    154 KERNEL=="qft*",                 NAME="%k", GROUP="disk"
    155 KERNEL=="nqft*",                NAME="%k", GROUP="disk"
    156 KERNEL=="zqft*",                NAME="%k", GROUP="disk"
    157 KERNEL=="nzqft*",               NAME="%k", GROUP="disk"
    158 KERNEL=="rawqft*",              NAME="%k", GROUP="disk"
    159 KERNEL=="nrawqft*",             NAME="%k", GROUP="disk"
     143KERNEL=="qft*",                 NAME="%k", GROUP="tape"
     144KERNEL=="nqft*",                NAME="%k", GROUP="tape"
     145KERNEL=="zqft*",                NAME="%k", GROUP="tape"
     146KERNEL=="nzqft*",               NAME="%k", GROUP="tape"
     147KERNEL=="rawqft*",              NAME="%k", GROUP="tape"
     148KERNEL=="nrawqft*",             NAME="%k", GROUP="tape"
    160149KERNEL=="pf*",                  NAME="%k", GROUP="disk"
    161150KERNEL=="sch*",                 NAME="%k", GROUP="disk"
    162 KERNEL=="pt*",                  NAME="%k", GROUP="disk"
    163 KERNEL=="npt*",                 NAME="%k", GROUP="disk"
     151KERNEL=="pt*",                  NAME="%k", GROUP="tape"
     152KERNEL=="npt*",                 NAME="%k", GROUP="tape"
    164153KERNEL=="pg*",                  NAME="%k", GROUP="disk"
    165154KERNEL=="evms/block_device*",   NAME="%k", GROUP="disk"
    166155KERNEL=="rawctl*",              NAME="%k", GROUP="disk"
    167 KERNEL=="osst*",                NAME="%k", GROUP="disk"
    168 KERNEL=="nosst*",               NAME="%k", GROUP="disk"
     156KERNEL=="osst*",                NAME="%k", GROUP="tape"
     157KERNEL=="nosst*",               NAME="%k", GROUP="tape"
    169158KERNEL=="iseries/vt*",          NAME="%k", GROUP="disk"
    170159KERNEL=="iseries/nvt*",         NAME="%k", GROUP="disk"
     
    172161
    173162# libusb device access
    174 SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
    175 
    176 # kernel firmware loader
    177 SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper"
     163SUBSYSTEM=="usb_device",        PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", NAME="%c", MODE="0644"
  • udev/60-persistent.rules

    r96204b1 r1f7827a2  
    11########################################################################
    22#
    3 # Description : Persistent Rules
     3# Description : 60-persistent.rules
    44#
    55# Authors     : Based on Open Suse Udev Rules
     
    1818# scheme based on "Linux persistent device names", 2004, Hannes Reinecke <hare@suse.de>
    1919
    20 ACTION!="add", GOTO="persistent_end"
    21 SUBSYSTEM!="block", GOTO="persistent_end"
     20ACTION!="add",          GOTO="persistent_end"
     21SUBSYSTEM!="block",     GOTO="persistent_end"
    2222
    2323# skip rules for inappropriate block devices
    24 KERNEL=="ram*|loop*|fd*|nbd*", GOTO="persistent_end"
     24KERNEL=="ram*|loop*|fd*|nbd*",  GOTO="persistent_end"
    2525
    2626# never access removable ide devices, the drivers are causing event loops on open()
    27 BUS=="ide", DRIVER!="ide-cdrom", SYSFS{removable}="1", GOTO="persistent_end"
     27BUS=="ide",     DRIVER!="ide-cdrom", SYSFS{removable}="1", GOTO="persistent_end"
    2828
    2929# by-id (hardware serial number)
    30 KERNEL=="hd*[!0-9]", IMPORT{program}="/sbin/ata_id --export $tempnode"
    31 KERNEL=="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
    32 KERNEL=="hd*[0-9]", IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
     30KERNEL=="hd*[!0-9]",    IMPORT{program}="/sbin/ata_id --export $tempnode"
     31KERNEL=="hd*[!0-9]",    ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}"
     32KERNEL=="hd*[0-9]",     IMPORT{parent}=="ID_*", SYMLINK+="disk/by-id/ata-$env{ID_MODEL}_$env{ID_SERIAL}-part%n"
    3333
    34 KERNEL=="sd*[!0-9]|sr*", SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394"
    35 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/usb_id -x"
    36 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -s %p -d $tempnode"
    37 KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -a -s %p -d $tempnode"
    38 KERNEL=="dasd*[!0-9]", IMPORT{program}="/sbin/dasd_id --export $tempnode"
    39 KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
     34KERNEL=="sd*[!0-9]|sr*",                SYSFS{ieee1394_id}=="*", ENV{ID_SERIAL}="$sysfs{ieee1394_id}", ENV{ID_BUS}="ieee1394"
     35KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/usb_id -x"
     36KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -s %p -d $tempnode"
     37KERNEL=="sd*[!0-9]|sr*",                ENV{ID_SERIAL}=="", IMPORT{program}="/sbin/scsi_id -g -x -a -s %p -d $tempnode"
     38KERNEL=="dasd*[!0-9]",                  IMPORT{program}="/sbin/dasd_id --export $tempnode"
     39KERNEL=="sd*[!0-9]|sr*|dasd*[!0-9]",    ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
    4040
    4141# for partitions import parent information
    42 KERNEL=="sd*[0-9]|dasd*[0-9]", IMPORT{parent}=="ID_*"
    43 KERNEL=="sd*[0-9]|dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
     42KERNEL=="sd*[0-9]|dasd*[0-9]",  IMPORT{parent}=="ID_*"
     43KERNEL=="sd*[0-9]|dasd*[0-9]",  ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
    4444
    4545# by-path (shortest physical path)
    46 KERNEL=="*[!0-9]|sr*", ENV{ID_TYPE}=="?*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
    47 KERNEL=="sr*", GOTO="persistent_end"
    48 KERNEL=="*[0-9]", IMPORT{parent}=="ID_*"
    49 KERNEL=="*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
     46KERNEL=="*[!0-9]|sr*",  ENV{ID_TYPE}=="?*", IMPORT{program}="/sbin/path_id %p", SYMLINK+="disk/by-path/$env{ID_PATH}"
     47KERNEL=="sr*",          GOTO="persistent_end"
     48KERNEL=="*[0-9]",       IMPORT{parent}=="ID_*"
     49KERNEL=="*[0-9]",       ENV{ID_PATH}=="?*", SYMLINK+="disk/by-path/$env{ID_PATH}-part%n"
    5050
    5151# by-label/by-uuid (filesystem properties)
    52 KERNEL=="*[!0-9]", SYSFS{removable}=="1", GOTO="persistent_end"
     52KERNEL=="*[!0-9]",              SYSFS{removable}=="1", GOTO="persistent_end"
    5353IMPORT{program}="/sbin/vol_id --export $tempnode"
    54 ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
    55 ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
     54ENV{ID_FS_UUID}=="?*",          SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
     55ENV{ID_FS_LABEL_SAFE}=="?*",    SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
    5656
    5757# BIOS Enhanced Disk Device
    58 KERNEL=="*[!0-9]", IMPORT{program}="/sbin/edd_id --export $tempnode"
    59 KERNEL=="*[!0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
    60 KERNEL=="*[0-9]", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"
     58KERNEL=="*[!0-9]",      IMPORT{program}="/sbin/edd_id --export $tempnode"
     59KERNEL=="*[!0-9]",      ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
     60KERNEL=="*[0-9]",       ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"
    6161
    62 KERNEL=="dm-[0-9]*", ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c"
     62KERNEL=="dm-[0-9]*",    ACTION=="add", PROGRAM="/sbin/dmsetup info -c --noopencount --noheadings -o name -j %M -m %m", SYMLINK="disk/by-name/%c"
    6363
    6464LABEL="persistent_end"
  • udev/85-mount-fstab.rules

    r96204b1 r1f7827a2  
    11########################################################################
    22#
    3 # Description : Sysconfig Rules Set
     3# Description : 85-mount-fstab.rules
    44#
    55# Authors     : Based on Open Suse Udev Rules
     
    1515########################################################################
    1616
    17 SUBSYSTEM=="block", ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh"
     17SUBSYSTEM=="block",     ACTION=="add", KERNEL=="sd*[0-9]|hd*[0-9]", RUN+="mount.sh"
  • udev/95-debug.rules

    r96204b1 r1f7827a2  
    11########################################################################
    22#
    3 # Description : Debug Rules Set
     3# Description : 95-debug.rules
    44#
    55# Authors     : Based on Open Suse Udev Rules
  • udev/Makefile

    r96204b1 r1f7827a2  
    77all: install
    88
    9 install: device_dirs device_links rules scripts boot
     9install: device_dirs device_links rules scripts boot mknod_devices
    1010
    1111rules:
    1212        install -m ${RULESMODE} 05-udev-early.rules ${DESTDIR}/etc/udev/rules.d/05-udev-early.rules
     13        install -m ${RULESMODE} 35-helper.rules ${DESTDIR}/etc/udev/rules.d/35-helper.rules
     14        install -m ${RULESMODE} 40-modprobe.rules ${DESTDIR}/etc/udev/rules.d/40-modprobe.rules
    1315        install -m ${RULESMODE} 50-udev.rules ${DESTDIR}/etc/udev/rules.d/50-udev.rules
     16        install -m ${RULESMODE} 55-sound.rules ${DESTDIR}/etc/udev/rules.d/55-sound.rules
    1417        install -m ${RULESMODE} 60-persistent.rules ${DESTDIR}/etc/udev/rules.d/60-persistent.rules
    1518        install -m ${RULESMODE} 85-mount-fstab.rules ${DESTDIR}/etc/udev/rules.d/85-mount-fstab.rules
     
    2124        install -m ${SCRIPTMODE} input.sh ${DESTDIR}/lib/udev/input.sh
    2225        install -m ${SCRIPTMODE} mount.sh ${DESTDIR}/lib/udev/mount.sh
    23         install -m ${SCRIPTMODE} udev.count_events ${DESTDIR}/usr/bin/udev.count_events
    2426
    2527boot:
     
    2729        install -d ${DESTDIR}/etc/rc.d/rcsysinit.d
    2830        install -d ${DESTDIR}/etc/rc.d/init.d
    29         install -d ${DESTDIR}/var/adm/fillup-templates
    3031        install -m ${INITMODE} udev ${DESTDIR}/etc/rc.d/init.d/udev
    3132        install -m ${INITMODE} udev_retry ${DESTDIR}/etc/rc.d/init.d/udev_retry
    32         install -d ${DESTDIR}/var/adm/fillup-templates
    33         install -m ${CONFMODE} sysconfig.storage ${DESTDIR}/var/adm/fillup-templates/sysconfig.storage
    3433        install -m ${SCRIPTMODE} show_event_log ${DESTDIR}/usr/share/udev/show_event_log
    3534        ln -sf ../init.d/udev ${DESTDIR}/etc/rc.d/rcsysinit.d/S10udev
    36         ln -sf ../init.d/udev_retry ${DESTDIR}/etc/rc.d/rcsysinit.d/S15udev_retry
     35        ln -sf ../init.d/udev_retry ${DESTDIR}/etc/rc.d/rcsysinit.d/S45udev_retry
    3736
    3837device_dirs:
     
    4948        ln -snf /proc/kcore ${DESTDIR}/lib/udev/devices/core
    5049
    51 .PHONY: all install device_dirs device_links rules scripts boot
     50mknod_devices:
     51        @echo ""
     52        @echo "This step will fail if your not installing as the root user"
     53        @echo "If it does, you will need to create these devices manually."
     54        @echo "If you get a message saying 'File exists', you can safely"
     55        @echo "Ignore this step."
     56        @echo ""
     57        @echo "Here are the commands for you to run as the root user."
     58        @echo ""
     59        @echo "mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3"
     60        @echo "mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1"
     61        @mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3
     62        @mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1
     63
     64.PHONY: all install device_dirs device_links rules scripts boot mknod_devices
  • udev/mount.sh

    r96204b1 r1f7827a2  
    22########################################################################
    33#
    4 # Description : Input devices
     4# Description : Mount devices
    55#
    66# Authors     : Based on Open Suse Udev Rules
     
    3535        NODES="$NODES /dev/$sl"
    3636done
    37 boot_mesg "Avilable nodes: $NODES"
     37boot_mesg "Available nodes: $NODES"
    3838
    3939NODE=
  • udev/udev

    r96204b1 r1f7827a2  
    99#
    1010# Adapted to  : Jim Gifford
    11 # LFS
     11# LFS         : Alexander E. Patrakov
    1212#
    1313# Version     : 00.00
     
    6262        evaluate_retval
    6363
    64         boot_mesg "Executing udevstart..."
    65         udevstart
    66         evaluate_retval
    67 
    6864        # disable hotplug helper, udevd listens to netlink
     65        if [ `cat /proc/sys/kernel/hotplug` ] ; then
    6966        echo "" > /proc/sys/kernel/hotplug
     67        fi
    7068
    7169        # start udevd
    7270        boot_mesg "Starting udevd..."
    73         loadproc /sbin/udevd --daemon
    74 
    75         # cleanup some stuff
    76         rm -f /var/run/sysconfig/network
    77         rm -rf /events/*
     71        /sbin/udevd --daemon
     72        evaluate_retval
    7873
    7974        # start coldplugging
  • udev/udev.makechanges

    r96204b1 r1f7827a2  
    77make it work. I used
    88
    9 http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/gregkh-all-2.6.15.patch
     9http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/old/gregkh-all-2.6.15.patch
    1010
    1111Second, you will need to use udev 079, here is the build instructions
Note: See TracChangeset for help on using the changeset viewer.