#!/bin/sh

. /var/config/symlink

if [ ! -s /var/emu/mbox ] ; then
    echo "Error - missing MBox !!!"
    echo ""
else
    #echo "MBox stop..."
    $SYMLINK/emustop.sh
    sleep 2
    
    echo "MBox started..."
    /var/emu/mbox /var/keys/mbox.cfg >/dev/null &

    echo emu=mbox >/var/config/emu.conf
    echo "MBox Started"
fi

exit 0
