From d19b21cc828e806d36aee0b5e8eab70a7b7bf538 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 27 Jan 2010 15:29:37 +0100 Subject: added mdev stuff to init --- boot-env/pbs/uclib-rootfs/init | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'boot-env/pbs/uclib-rootfs/init') diff --git a/boot-env/pbs/uclib-rootfs/init b/boot-env/pbs/uclib-rootfs/init index 67427127..5a49a6b3 100755 --- a/boot-env/pbs/uclib-rootfs/init +++ b/boot-env/pbs/uclib-rootfs/init @@ -45,7 +45,20 @@ done # device files get their own filesystem devdir="/dev" -mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${devdir} +mount -n -t tmpfs -o 'size=25%,mode=0755' mdev ${devdir} +mkdir -p /dev/pts +mount -t devpts devpts /dev/pts +echo /bin/mdev > /proc/sys/kernel/hotplug +cat > /etc/mdev.conf << "EOF" +sda* 0:6 0660 +sdb* 0:6 0660 +sg* 0:6 0660 +hda* 0:6 0660 +hdb* 0:6 0660 +EOF + +mdev -s + export DEBUGLEVEL=0 # create basic device files an directories in dev -- cgit v1.2.3-55-g7522