summaryrefslogtreecommitdiff
path: root/meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-12-21 10:01:42 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-12-21 10:01:42 +0000
commit1685e259a52881bbf661d5b163bafbfb847df13c (patch)
treecbc3dea52f24f9a6a87abcaaed04abda320cae93 /meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh
parent1011c2b7e9ef1795bee77f88cc32ead943ff1cff (diff)
downloadopenembedded-core-1685e259a52881bbf661d5b163bafbfb847df13c.tar.gz
openembedded-core-1685e259a52881bbf661d5b163bafbfb847df13c.tar.bz2
openembedded-core-1685e259a52881bbf661d5b163bafbfb847df13c.tar.xz
openembedded-core-1685e259a52881bbf661d5b163bafbfb847df13c.zip
busybox: update 1.8.1 to 1.8.2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3366 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh')
-rwxr-xr-xmeta/packages/busybox/busybox-1.8.1/busybox-mdev.sh69
1 files changed, 0 insertions, 69 deletions
diff --git a/meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh b/meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh
deleted file mode 100755
index 9744322fa..000000000
--- a/meta/packages/busybox/busybox-1.8.1/busybox-mdev.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-MDEV=/sbin/mdev
-DESC="Busybox mdev setup"
-
-# Complain if thing's aren't right
-if [ ! -e /proc/filesystems ]; then
- echo "mdev requires a mounted procfs, not started."
- exit 1
-fi
-
-if ! grep -q '[[:space:]]tmpfs$' /proc/filesystems; then
- echo "mdev requires tmpfs support, not started."
- exit 1
-fi
-
-if [ ! -d /sys/class/ ]; then
- echo "mdev requires a mounted sysfs, not started."
- exit 1
-fi
-
-if [ ! -e /proc/sys/kernel/hotplug ]; then
- echo "mdev requires hotplug support, not started."
- exit 1
-fi
-
-# We need to unmount /dev/pts/ and remount it later over the tmpfs
-if mountpoint -q /dev/pts/; then
- umount -l /dev/pts/
-fi
-
-if mountpoint -q /dev/shm/; then
- umount -l /dev/shm/
-fi
-
-# Create tmpfs for /dev
-echo "Creating tmpfs at /dev"
-mount -t tmpfs tmpfs /dev -o size=800k
-
-# Register mdev as hotplug event helper
-echo "$MDEV" > /proc/sys/kernel/hotplug
-
-# Populate /dev from /sys info
-echo "Populating /dev using mdev"
-$MDEV -s
-
-# Touch .udev to inform scripts that /dev needs no further setup
-touch /dev/.udev
-
-# Mount devpts
-TTYGRP=5
-TTYMODE=620
-mkdir -m 755 -p /dev/pts
-if [ ! -e /dev/ptmx ]; then
- mknod -m 666 /dev/ptmx c 5 2
-fi
-mount -t devpts devpts /dev/pts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE
-
-# Make shm directory
-mkdir -m 755 -p /dev/shm
-
-# Make extraneous links
-ln -sf /proc/self/fd /dev/fd
-ln -sf /proc/self/fd/0 /dev/stdin
-ln -sf /proc/self/fd/1 /dev/stdout
-ln -sf /proc/self/fd/2 /dev/stderr
-ln -sf /proc/kcore /dev/core
-ln -sf /proc/asound/oss/sndstat /dev/sndstat
-
-exit 0