mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -17,14 +17,14 @@ failsafe() {
|
|||||||
ash --login
|
ash --login
|
||||||
}
|
}
|
||||||
|
|
||||||
mount none /proc -t proc
|
mount proc /proc -t proc
|
||||||
mount none /sys -t sysfs
|
mount sysfs /sys -t sysfs
|
||||||
|
|
||||||
size=$(awk '/MemTotal:/ {l=5242880;mt=($2*1024);print((s=mt/2)<l)?mt-l:s}' /proc/meminfo)
|
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
|
if grep devfs /proc/filesystems > /dev/null; then
|
||||||
mount none /dev -t devfs
|
mount devfs /dev -t devfs
|
||||||
M0=/dev/pty/m0
|
M0=/dev/pty/m0
|
||||||
M1=/dev/pty/m1
|
M1=/dev/pty/m1
|
||||||
HOTPLUG=/sbin/hotplug-call
|
HOTPLUG=/sbin/hotplug-call
|
||||||
@@ -40,7 +40,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /dev/pts /dev/shm
|
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
|
# the shell really doesn't like having stdin/out closed
|
||||||
# that's why we use /dev/pty/m0 and m1 as replacement
|
# that's why we use /dev/pty/m0 and m1 as replacement
|
||||||
|
|||||||
Reference in New Issue
Block a user