#!/bin/sh
# Copyright (C) 2016 Algo Communication Products Ltd.

TARGET=$1

cd /apps
if [ -d "$TARGET" ]; then
	# use /apps/$TARGET for back compatibility to v1.3 firmware
	ln -sfn /apps/"$TARGET"/ curapp
	sync
fi

/etc/init.d/algo-uieng restart
