summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
53c341c)
Check if the ramdisk exists before creating it.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
LAUNCHDIR=`pwd`
RUNDIR=`pwd`/tmp
mkdir $RUNDIR
LAUNCHDIR=`pwd`
RUNDIR=`pwd`/tmp
mkdir $RUNDIR
+
+if [ -z "$(mount | grep $RUNDIR)" ]; then
sudo mount -t tmpfs -osize=2G none $RUNDIR
sudo chmod a+wr $RUNDIR
sudo mount -t tmpfs -osize=2G none $RUNDIR
sudo chmod a+wr $RUNDIR