diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-19 19:34:16 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-07-19 19:34:16 +0200 |
commit | 410805431cd5208f758c60a733767233ea3208fa (patch) | |
tree | 1834e51acc374ea5615386dde7072b5c82cfc39e /package/base-files/src | |
parent | d403ed3160e4960a995d6002f4b2f1337eb829f8 (diff) |
fix tmpfs size, when /etc/tmpfs is not given
Diffstat (limited to 'package/base-files/src')
-rwxr-xr-x | package/base-files/src/init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/src/init b/package/base-files/src/init index 173e91b0b..7da1e150f 100755 --- a/package/base-files/src/init +++ b/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 } |