summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-11-19 15:42:15 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-11-19 15:42:15 +0100
commit89653dcc749a119ef2ee51b5e9812b7820951ec3 (patch)
treeb3dae1d9c2f79482b2922a6a7dadf4634eb64859
parent4a684fc627175ee27833d5fcc9569510fa04dfcd (diff)
downloadplan9front-89653dcc749a119ef2ee51b5e9812b7820951ec3.tar.xz
inst/mounthjfs: use /dev/swap instead of #c/swap to determine memory size (thanks aap)
-rwxr-xr-xrc/bin/inst/mounthjfs2
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