Minor cleanup, including sysctl -n instead of sed to remove the sysctl

name.

Reviewed by:	imp
This commit is contained in:
Ed Maste 2010-10-19 15:12:16 +00:00
parent e09a0bdb32
commit 161a621b47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214059

View File

@ -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