Changeset 9411


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

only do hotplug2 init if hotplug2 is present

The current /init script unconditionally does the initialisation for
hotplug2, including mounting a new /dev. If hotplug2 isn't present, we
end up with no device nodes.

This change only does the hotplug2 init if hotplug2 is present, but
always mounts /sys.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/base-files/init

    r7158 r9411  
    44export PATH=/bin:/sbin:/usr/bin:/usr/sbin 
    55mount none /proc -t proc 
     6mount none /sys -t sysfs 
    67 
    78if grep devfs /proc/filesystems > /dev/null; then 
    89        mount none /dev -t devfs 
    9 else 
    10         mount -t sysfs none /sys 
     10 
     11elif [ -x /sbin/hotplug2 ]; then 
    1112        mount -t tmpfs tmpfs /dev -o size=512K 
    1213        mknod /dev/console c 5 1 
Note: See TracChangeset for help on using the changeset viewer.