
# Start up a second SGW instance

HSS_CUSTOM_CONF="/proj/PhantomNet/sep-hss/hss.xml"

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

HSS_CONF_PATH="hss.xml"

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

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

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

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