inst/mounthjfs: use /dev/swap instead of #c/swap to determine memory size (thanks aap)

front
cinap_lenrek 2017-11-19 15:42:15 +01:00
parent 4a684fc627
commit 89653dcc74
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ case go
fs=$rd fs=$rd
export fs export fs
mem=`{awk ' $2 == "pagesize" { p = $1 } $2 == "user" { split($1, a, "/"); print int((a[2] * p / 4 + 1048575) / 1048576) } ' '#c'/swap} mem=`{awk ' $2 == "pagesize" { p = $1 } $2 == "user" { split($1, a, "/"); print int((a[2] * p / 4 + 1048575) / 1048576) } ' /dev/swap}
prompt -d $mem 'Size of RAM filesystem cache (MB)?' prompt -d $mem 'Size of RAM filesystem cache (MB)?'
fsflags=(-m $rd) fsflags=(-m $rd)
export fsflags export fsflags