#!/bin/sh
#
# mktmpfs : Make tmpfs and mount it
#	h2y : 2010/5/24
#

if [ $# -lt 2 ]; then
	echo
	echo "usage: $0 kB-size mount-point"
	echo
	exit 0
fi

RETVAL=0

TMPFS_SIZE=`expr $1 '*' 1024`

/bin/mount -t tmpfs -o size=${TMPFS_SIZE} tmpfs $2

RETVAL=$?

exit $RETVAL

