early May. At the end of the month he sought an armistice, which was granted on 3 June. By the Treaty of Rawalpindi signed in August, Afghanistan gained control of its foreign affairs, and in turn, recognised the Durand Line as its border with India. The short-lived war had long-term consequences in Waziristan, where tribesmen rallied to Amanullah's cause. The western militia posts were abandoned. Many of the militia deserted, taking their modern weapons and joining their fellow tribesmen in attacking the remaining posts. As a result, the Indian Army's Waziristan Force was fully engaged in re-establishing the posts and restoring the lines of communication from November until May 1920. The western base at Wana was finally reoccupied in December 1920. The long-term plan for control of the district entailed building metalled roads along the lines of communication to a new central base to be established at Razmak. In 1921 work began on the southern road up the Tank Zam from Jandola, under the protection of the Waziristan Force. The following year work on the northern road from the Tochi began at Idak, shielded by the Razmak Force advancing to its objective. The two roads met in 1924, linking North and South Waziristan, and enabling the Indian Army to reorganise both areas as one military district. The Waziristan and Razmak Field Forces then devolved into brigades based permanently at Manzai, Razmak, Gardai, and Bannu. The following year the few tribal sections in South Waziristan remaining openly hostile were subdued by aircraft alone. For this operation the No. 2 (Indian) Wing of the RAF under Wing Commander Richard Pink was based at Tank and Miranshah. Aircraft comprising the Wana Patrol maintained regular weekly contact with the posts at Wana and Tanai until 1929, when the road from Sarwekai was completed, and the Manzai brigade relocated to Wana. Punjab Rebellion, including the Amritsar Massacre (1919) Third Anglo-Afghan War (1919) Operations in Waziristan (1919–20) Operations in Waziristan (1921–24) Pink's War (1925) Operation against the Mohmands (1927) Afridi Redshirt Rebellion (1930–31) Mohmand and Bajaur Operations (1933) Loe Agra Campaign (1935) Second Mohmand Campaign (1935) Operations in Waziristan (1936–39) 1940–1947 (Second World War to independence) From 1940 to 1947, Waziristan and indeed most of the Frontier remained relatively calm and the British were able to divert most of their military effort to more important theatres. There were, however, brief periods of trouble on the frontier,