diff options
author | emaste <emaste@FreeBSD.org> | 2010-10-19 15:12:16 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2010-10-19 15:12:16 +0000 |
commit | adec94f194ad8834756dc601133ddd1db65ef68a (patch) | |
tree | 6a91171a91491db5d9ece7100b962481b16939ec /usr.sbin | |
parent | 055bfca2629aa7fae7678fb050684d1a93369581 (diff) | |
download | FreeBSD-src-adec94f194ad8834756dc601133ddd1db65ef68a.zip FreeBSD-src-adec94f194ad8834756dc601133ddd1db65ef68a.tar.gz |
Minor cleanup, including sysctl -n instead of sed to remove the sysctl
name.
Reviewed by: imp
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend-query/sys-mem.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh b/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh index d8555af..bc0e3a2 100755 --- a/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh +++ b/usr.sbin/pc-sysinstall/backend-query/sys-mem.sh @@ -25,7 +25,4 @@ # # $FreeBSD$ -MEM=`sysctl hw.realmem | sed "s|hw.realmem: ||g"` -MEM=`expr $MEM / 1024` -MEM=`expr $MEM / 1024` -echo $MEM +expr $(sysctl -n hw.realmem) / 1048576 |