Changeset 9412


Ignore:
Timestamp:
2007-10-23T08:23:36+02:00 (10 years ago)
Author:
nbd
Message:

Add udev initilisation

We have a udev package, but no means to start udev at boot.

This change adds the necessary startup in /init, and adds the required
/sbin/udevsettle to the udev installed files

Signed-off-by: Jeremy Kerr <jk@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/udev/Makefile

    r8659 r9412  
    5555        $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/ 
    5656        $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/ 
     57        $(CP) $(PKG_INSTALL_DIR)/sbin/udevsettle $(1)/sbin/ 
    5758        install -d -m0775 $(1)/usr/bin/ 
    5859        $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/ 
  • trunk/target/linux/generic-2.6/base-files/init

    r9411 r9412  
    1515        mkdir /dev/shm 
    1616        /sbin/hotplug2 --no-persistent --coldplug --max_children 1 
     17 
     18elif [ -x /sbin/udevd ]; then 
     19        mount -n -t tmpfs -o mode=0755 udev /dev 
     20        mkdir /dev/pts 
     21        mkdir /dev/shm 
     22 
     23        if [ -e /proc/sys/kernel/hotplug ]; then 
     24                echo "" > /proc/sys/kernel/hotplug 
     25        fi 
     26 
     27        /sbin/udevd --daemon 
     28        /sbin/udevtrigger 
     29        /sbin/udevsettle 
     30 
    1731fi 
    1832 
Note: See TracChangeset for help on using the changeset viewer.