During the Malayan Emergency in the late 1940s, Gurkhas fought as jungle soldiers as they had done in Burma. The Training Depot Brigade of Gurkhas was established on 15 August 1951 at Sungai Petani, Kedah, Malaya. After the conflict ended, the Gurkhas were transferred to Hong Kong, where they carried out security duties. The troops patrolled the border checking for illegal immigrants entering the territory, most crucially during the turbulence of the Cultural Revolution. They were deployed to contain crowds during the Star Ferry riots of 1966. After Indian independence and partition in 1947, under the Tripartite Agreement, six Gurkha regiments joined the post-independence Indian Army. Four Gurkha regiments, the 2nd, 6th, 7th, and 10th Gurkha Rifles, joined the British Army on 1 January 1948. The 1st/2nd Gurkha Rifles was deployed to Brunei at the outbreak of the Brunei Revolt in 1962. In 1974 Turkey invaded Cyprus and the 10th Gurkha Rifles was sent to defend the British sovereign base area of Dhekelia. On 1 July 1994 the four rifle regiments were merged into one, the Royal Gurkha Rifles, and the three corps regiments (the Gurkha Military Police having been disbanded in 1965) were reduced to squadron strength. On 1 July 1997, the British government handed Hong Kong over to the People's Republic of China, which led to the elimination of the local British garrison. Gurkha HQ and recruit training were moved to the UK. The Royal Gurkha Rifles took part in operations in Kosovo in 1999, in UN peacekeeping operations in East Timor in 2000 and in Sierra Leone later that year.