#!/bin/sh
#
#    Copyright (c) 2002 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    File name:   memshow 
#    Module name: fabos/src/utils/sys
#
#    This script is wrapper export proc file /proc/meminfo. 
#    to export dynamic system memory status.
#

opt=""
if [ $# = 0 ]; then 
	opt="-b"	
elif [ $# = 1 ]; then 
	if [ "$1" = "-b" -o "$1" = "-k" -o "$1" = "-m" ]; then
		opt=$1
	fi
fi	
if [ "$opt" = "" ]; then
	echo "Usage: $0	[ -b | -k | -m ]"
	exit 1
else
	/usr/bin/free -o $opt
fi
