#!/bin/sh
if [ -f /cfg/activeapp.txt ]
then
    if [ `cat /cfg/activeapp.txt` == "app1" ]
    then
        echo "app2"
    else
        echo "app1"
    fi
else
    echo "app1"
fi
