# Script to change from the Sprint STIC lab network environment to the
# production environment

usage() {
    echo "Usage: stic [-y | -n] [MSL]"
    echo " -y   use the STIC lab network environment"
    echo " -n   use the production network envionment"
    echo " MSL  the device's MSL"
}

USE_STIC_ENVIRONMENT=0

if [ $# -ne 2 ]
then
    usage; 
    exit 1;
fi

if [ "$1" = "-y" ]
then
    USE_STIC_ENVIRONMENT=1
elif [ "$1" = "-n" ]
then
    USE_STIC_ENVIRONMENT=0
else
    usage; exit 1;
fi

if [ "$USE_STIC_ENVIRONMENT" -eq "1" ]
then
    touch /var/stic
else
    rm /var/stic
fi
OmaDm -stic $2
