
# Start up a second SGW instance

HSS2_CUSTOM_CONF="/proj/PhantomNet/sep-hss/hss2.xml"

SUDO="/usr/bin/sudo"
OEPCPATH="/opt/OpenEPC"
OEPCETC="$OEPCPATH/etc"
OEPCBIN="$OEPCPATH/bin"
OEPCPHANTOM="$OEPCPATH/phantomnet"

HSS2_CONF_PATH="hss.xml"

if [ ! -e $HSS2_CUSTOM_CONF ]
then
	echo "Error: Unable to find second HSS config: $HSS2_CUSTOM_CONF"
	exit 1;
fi

$SUDO $OEPCBIN/check_oepc_config.pl -i $HSS2_CUSTOM_CONF $HSS2_CONF_PATH \
    || { echo "Could not install secondary HSS config file!" && exit 1; }

#$SUDO $OEPCPHANTOM/run_wharf.pl hss \
 #   || { echo "Could not start secondary HSS wharf process!" && exit 1; }

#echo "Second  HSSwharf process started."
exit 0;
