#!/bin/sh

NUM=1
file="/tmp/LanIPchange"
fw_file="/tmp/firmwareUpdate"

#check if settings change file exists

while [ $NUM -eq 1 ]; do
	if [ -e $file ]
	then
		sleep 5
		/app/scripts/reboot
	elif [ -e $fw_file ]
	then
		sleep 5
		mv /tmp/apps_EIPR_ver*.tgz /tmp/apps.tgz
		/app/scripts/setup-notftp.sh
		sleep 1	
		/app/scripts/reboot
	else
		sleep 2
	fi
done



