---------------------------------
:: Intel UGW Software CD patch ::
---------------------------------

This patch contains generic fixes on UGW based SDK CD.

INSTALLATION AND BUILD PROCEDURE
================================

<SDK> is a placeholder for the specific UGW/SDK combination
<#p> is a placeholder for the specific patch number(s)

Get UGW SDK CD and this patch
	1. UGW-<SDK>-SW-CD.zip
	2. <#p>-UGW-<SDK>-SW-patch.sh

Extract the Zip's:-
	unzip UGW-<SDK>-SW-CD.zip
	chmod +x UGW-<SDK>-SW-CD/install.sh
	chmod +x <#p>-UGW-<SDK>-SW-patch.sh

Install the CD and apply patch:
	cd UGW-<SDK>-SW-CD
	./install.sh (Accept license)

	cp ../<#p>-UGW-<SDK>-SW-patch.sh ./ugw_sw
	cd ugw_sw
	./<#p>-UGW-<SDK>-SW-patch.sh (Accept license)

To view changes (New files / Modified files / Removed files):-
	cd-patches/<#p>-UGW-<SDK>-SW-patch.sh/
	Added files under:- new/
		find new/ -type f
	Modified files under:- modified/
		find modified/ -type f
	Removed files under:- removed/
		find removed/ -type f

To build:-
	./ugw-prepare-all.sh

To select Model:-
	Once Build is done,
	 cd openwrt/
	./scripts/ltq_change_environment.sh switch
	Selct Model Appropriately...!


---------------------------------------------------------

Please follow the recommendation and install the patch on top of a fresh CD, meaning not compiled before.
If it is not possible, you will observe that applying patch internally triggers touch on all files
(some internal mechanism of this opensource installer ‘install.sh’ which we used) which leads to
stamping too many compiled files results in huge delay / hang.
This happens before license print, and can take several minutes.
Once it is done, please follow the next steps:

- delete openwrt/tmp folder
- reset feeds using ./ugw_prepare_all.sh -r -i
- re-install feeds using ./ugw_prepare_all.sh
- re-select model using: cd openwrt; ./scripts/ltq_change_environment.sh switch
- make