diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-19 15:42:15 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-11-19 15:42:15 +0100 |
commit | 89653dcc749a119ef2ee51b5e9812b7820951ec3 (patch) | |
tree | b3dae1d9c2f79482b2922a6a7dadf4634eb64859 /rc/bin/inst | |
parent | 4a684fc627175ee27833d5fcc9569510fa04dfcd (diff) | |
download | plan9front-89653dcc749a119ef2ee51b5e9812b7820951ec3.tar.xz |
inst/mounthjfs: use /dev/swap instead of #c/swap to determine memory size (thanks aap)
Diffstat (limited to 'rc/bin/inst')
-rwxr-xr-x | rc/bin/inst/mounthjfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/bin/inst/mounthjfs b/rc/bin/inst/mounthjfs index ba4816b4d..db3f2e6c0 100755 --- a/rc/bin/inst/mounthjfs +++ b/rc/bin/inst/mounthjfs @@ -22,7 +22,7 @@ case go fs=$rd 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)?' fsflags=(-m $rd) export fsflags |