#!/bin/sh -e
# installer startup script for udev

# Give ourselves a tmpfs to work in
mount -t tmpfs tmpfs /dev
mknod -m 600 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3

# Copy over default device tree
cp -a -f /lib/udev/devices/* /dev

# It's all over netlink now
echo "" > /proc/sys/kernel/hotplug

# Start udevd
udevd --daemon --resolve-names=never

# Create all device nodes, and fix up permissions and missing stuff for
# those already created (by initramfs)
/sbin/udevadm trigger
/sbin/udevadm settle

mount -t devpts devpts /dev/pts
