Browse Source

fix tmpfs size, when /etc/tmpfs is not given

Waldemar Brodkorb 14 years ago
parent
commit
410805431c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/src/init

+ 1 - 1
package/base-files/src/init

@@ -4,8 +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=2048
 	size=$(cat /etc/tmpfs 2>/dev/null)
+	[ -z $size ] && size=2048
 	mount none /tmp -t tmpfs -o size=${size}k
 	mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
 }