Commit 51dd0ced authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

check if mountpoint exists

parent 8ef0152f
......@@ -15,7 +15,9 @@ case "$1" in
echo "$NAME:"
#mount here
echo " Mounting Memory Card to $MNTPOINT"
if [ ! -d $MNTPOINT ]; then
mkdir $MNTPOINT
fi
mount $MMCDEV $MNTPOINT
if [ -f $MNTPOINT/$SOME_SCRIPT ]; then
echo " Launching $SOME_SCRIPT"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment