43 |
|
|
44 |
# if you want real coldplug (with all modules being loaded for all |
# if you want real coldplug (with all modules being loaded for all |
45 |
# devices in the system), uncomment out the next line. |
# devices in the system), uncomment out the next line. |
46 |
#list="${lis}t $(echo /sys/bus/*/devices/*/uevent)" |
list="${lis}t $(echo /sys/bus/*/devices/*/uevent)" |
47 |
list="${list} $(echo /sys/class/*/*/uevent)" |
list="${list} $(echo /sys/class/*/*/uevent)" |
48 |
list="${list} $(echo /sys/block/*/uevent /sys/block/*/*/uevent)" |
list="${list} $(echo /sys/block/*/uevent /sys/block/*/*/uevent)" |
49 |
for i in ${list} |
for i in ${list} |
76 |
start_devicemanager() |
start_devicemanager() |
77 |
{ |
{ |
78 |
# create a ramdisk for populating mdev |
# create a ramdisk for populating mdev |
79 |
rc_print "Mounting mdev at /dev ..." |
if [[ -z $(grep '[[:space:]]/dev[[:space:]]' /proc/mounts | cut -d ' ' -f2) ]] |
80 |
# many video drivers needed exec access |
then |
81 |
fstype=ramfs |
rc_print "Mounting mdev at /dev ..." |
82 |
# tmpfs was suggested by Greg Kroah-Hartman |
# many video drivers needed exec access |
83 |
kernel_supports_fs tmpfs && fstype=tmpfs |
fstype=ramfs |
84 |
# mount devtmpfs if supported |
# tmpfs was suggested by Greg Kroah-Hartman |
85 |
kernel_supports_fs devtmpfs && fstype=devtmpfs |
kernel_supports_fs tmpfs && fstype=tmpfs |
86 |
mount -n -t ${fstype} mdev /dev -o exec,nosuid,mode=0755,size=1024 |
# mount devtmpfs if supported |
87 |
evaluate_retval |
kernel_supports_fs devtmpfs && fstype=devtmpfs |
88 |
|
mount -n -t ${fstype} dev /dev -o exec,nosuid,mode=0755,size=10M |
89 |
|
evaluate_retval |
90 |
|
fi |
91 |
|
|
92 |
# other eeded device nodes with udev |
# other needed device nodes with mdev |
93 |
seed_dev |
seed_dev |
94 |
|
|
95 |
if [ -e /proc/sys/kernel/hotplug ] |
if [ -e /proc/sys/kernel/hotplug ] |