summaryrefslogtreecommitdiff
path: root/package/base-files/src/init
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/src/init')
-rwxr-xr-xpackage/base-files/src/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/src/init b/package/base-files/src/init
index 618547693..173e91b0b 100755
--- a/package/base-files/src/init
+++ b/package/base-files/src/init
@@ -4,7 +4,8 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount -nt proc proc /proc
mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
[ ! -f /etc/notmpfs ] && {
- size=$(awk '/MemTotal:/ { if ($2 > 16000) { print 4096 } else { print 2048 }}' /proc/meminfo)
+ size=2048
+ size=$(cat /etc/tmpfs 2>/dev/null)
mount none /tmp -t tmpfs -o size=${size}k
mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
}