summaryrefslogtreecommitdiffstats
path: root/boot-env/pbs/uclib-rootfs/init
diff options
context:
space:
mode:
authorSebastian2010-01-27 15:29:37 +0100
committerSebastian2010-01-27 15:29:37 +0100
commitd19b21cc828e806d36aee0b5e8eab70a7b7bf538 (patch)
tree7b80efdd0ed6ab78a717860da5438687699eedf0 /boot-env/pbs/uclib-rootfs/init
parentbugfix for empty string (diff)
downloadcore-d19b21cc828e806d36aee0b5e8eab70a7b7bf538.tar.gz
core-d19b21cc828e806d36aee0b5e8eab70a7b7bf538.tar.xz
core-d19b21cc828e806d36aee0b5e8eab70a7b7bf538.zip
added mdev stuff to init
Diffstat (limited to 'boot-env/pbs/uclib-rootfs/init')
-rwxr-xr-xboot-env/pbs/uclib-rootfs/init15
1 files changed, 14 insertions, 1 deletions
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