inst/mounthjfs: use /dev/swap instead of #c/swap to determine memory size (thanks aap)
This commit is contained in:
parent
4a684fc627
commit
89653dcc74
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue