diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2007-03-03 20:35:01 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2007-03-03 20:35:01 +0000 |
commit | faa289d9853f62f5c0b8084902e26a121ee8a03b (patch) | |
tree | 5ff00962fbf954332a4f650b3cb36a4aaa7d60bf /target/linux/generic-2.6/files | |
parent | 69aa065a6b80b4dc9df44a5f3d165e6f17269e81 (diff) | |
download | upstream-faa289d9853f62f5c0b8084902e26a121ee8a03b.tar.gz upstream-faa289d9853f62f5c0b8084902e26a121ee8a03b.tar.bz2 upstream-faa289d9853f62f5c0b8084902e26a121ee8a03b.zip |
R.I.P. devfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6478 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/files')
-rwxr-xr-x | target/linux/generic-2.6/files/init | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/files/init b/target/linux/generic-2.6/files/init index 1fa6a7f1f6..292d429dcd 100755 --- a/target/linux/generic-2.6/files/init +++ b/target/linux/generic-2.6/files/init @@ -3,8 +3,19 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin mount none /proc -t proc -mount none /dev -t devfs -mount non /dev/pts -t devpts + +if grep devfs /proc/filesystems > /dev/null; then + mount none /dev -t devfs +else + mount -t sysfs none /sys + mount -t tmpfs tmpfs /dev -o size=512K + mknod /dev/console c 5 1 + mkdir /dev/pts + mkdir /dev/shm + /sbin/mdev -s +fi + +mount none /dev/pts -t devpts # the root mount point can come from the kernel command line # or it can be overridden in the preinit.arch file |