summaryrefslogtreecommitdiff
path: root/etc/init.d/vyatta-router
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d/vyatta-router')
-rwxr-xr-xetc/init.d/vyatta-router9
1 files changed, 1 insertions, 8 deletions
diff --git a/etc/init.d/vyatta-router b/etc/init.d/vyatta-router
index 70023d0..2b0aa02 100755
--- a/etc/init.d/vyatta-router
+++ b/etc/init.d/vyatta-router
@@ -184,14 +184,7 @@ start ()
# of the system memory.
local tmem=$(sed -n 's/^MemTotal: \+\([0-9]\+\) kB$/\1/p' /proc/meminfo)
local tpages
- local max_inodes=300000
- if [ -n "$tmem" ]; then
- (( tpages = tmem / 4 ))
- if (( tpages > max_inodes )); then
- (( max_inodes = tpages ))
- fi
- fi
- local tmpfs_opts="nosuid,nodev,mode=775,nr_inodes=$max_inodes"
+ local tmpfs_opts="nosuid,nodev,mode=775,nr_inodes=0" #automatically allocate inodes
mount -o $tmpfs_opts -t tmpfs none ${vyatta_configdir} \
&& chgrp ${GROUP} ${vyatta_configdir}
log_action_end_msg $?