Browse Source

Fixed install init checking the right way for /dev/{console,null,zero}

- We have to use test -c while checking for character devices.
misl/sde-wrapper
Christian Wiese 17 years ago
parent
commit
ba8d066371
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      target/share/install/init

+ 14
- 5
target/share/install/init

@ -28,15 +28,20 @@ mount -t usbfs none /proc/bus/usb
mount -t sysfs none /sys
ln -s /proc/self/fd /dev/fd
echo "Populating /dev (u/dev) ..."
udevd --daemon
udevtrigger
if [ ! -f /dev/console ]; then
if [ ! -c /dev/console ]; then
mknod /dev/console c 5 1
fi
if [ ! -c /dev/null ]; then
mknod /dev/null c 1 3
fi
if [ ! -c /dev/zero ]; then
mknod /dev/zero c 1 5
fi
echo "Populating /dev (u/dev) ..."
udevd --daemon
udevtrigger
echo "Running hotplug++ hardware detection ..."
/sbin/hotplug++ -synth
echo "/sbin/hotplug++" > /proc/sys/kernel/hotplug
@ -76,9 +81,13 @@ doboot()
mount /proc /mnt_root/proc -t none -o move
mount /sys /mnt_root/sys -t none -o move
if [ ! -f /mnt_root/dev/console ]; then
if [ ! -c /mnt_root/dev/console ]; then
mknod /mnt_root/dev/console c 5 1
fi
if [ ! -c /mnt_root/dev/null ]; then
mknod /mnt_root/dev/null c 1 3
fi
if [ ! -c /mnt_root/dev/zero ]; then
mknod /mnt_root/dev/zero c 1 5
fi

Loading…
Cancel
Save