diff options
author | Matteo Croce <matteo@openwrt.org> | 2008-04-21 18:08:05 +0000 |
---|---|---|
committer | Matteo Croce <matteo@openwrt.org> | 2008-04-21 18:08:05 +0000 |
commit | 53a34b19adfcec0ac128fa20ab506dec70ee183e (patch) | |
tree | ef02ce6d16b1117b5b7ec733a995d2df5fc91f08 /package | |
parent | 980aa6f81e8f9fad9a6a652398a0b1696300fc91 (diff) | |
download | upstream-53a34b19adfcec0ac128fa20ab506dec70ee183e.tar.gz upstream-53a34b19adfcec0ac128fa20ab506dec70ee183e.tar.bz2 upstream-53a34b19adfcec0ac128fa20ab506dec70ee183e.zip |
assign names to filesystems when mounting virtual ones (closes #3340)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10903 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/base-files/files/etc/preinit | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index 66bb1a5cc1..c24035ec3f 100755 --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -17,14 +17,14 @@ failsafe() { ash --login } -mount none /proc -t proc -mount none /sys -t sysfs +mount proc /proc -t proc +mount sysfs /sys -t sysfs size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)<l)?mt-l:s}' /proc/meminfo) -mount none /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777 +mount tmpfs /tmp -t tmpfs -o size=$size,nosuid,nodev,mode=1777 if grep devfs /proc/filesystems > /dev/null; then - mount none /dev -t devfs + mount devfs /dev -t devfs M0=/dev/pty/m0 M1=/dev/pty/m1 HOTPLUG=/sbin/hotplug-call @@ -40,7 +40,7 @@ else fi mkdir -p /dev/pts /dev/shm -mount none /dev/pts -t devpts +mount devpts /dev/pts -t devpts # the shell really doesn't like having stdin/out closed # that's why we use /dev/pty/m0 and m1 as replacement |