Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 19 years ago
parent
commit
364b78baf3
2 changed files with 10 additions and 3 deletions
  1. +0
    -1
      package/blindcoder/rockinitrd/initrd_base.txt
  2. +10
    -2
      package/blindcoder/rockinitrd/linuxrc

+ 0
- 1
package/blindcoder/rockinitrd/initrd_base.txt

@ -14,4 +14,3 @@
/lib/udev_run_hotplugd /lib/udev_run_hotplugd
/etc/hotplug.d /etc/hotplug.d
/etc/hotplug /etc/hotplug
/lib/udev /lib/udev

+ 10
- 2
package/blindcoder/rockinitrd/linuxrc

@ -39,8 +39,16 @@ mount -n -t sysfs sysfs /sys || echo "Can't mount sysfs!"
mount -n -t ramfs ramfs /dev || echo "Can't mount ramfs!"
echo "" > /proc/sys/kernel/hotplug
/sbin/udevd --daemon
/sbin/udevstart # create nodes for devices already in kernel
sleep 2
# create nodes for devices already in kernel
while read uevent; do
echo 1 > $uevent
done < <( find /sys -name uevent )
udevwait=0
while [ -d /dev/.udev/queue -a $udevwait -lt 300 ] ; do
sleep 1
(( udevwait++ ))
done
cd /dev
rm -rf fd
ln -sf /proc/self/fd

|||||||
100:0
Loading…
Cancel
Save