Badayuni was not a Barelwi as such, more of an associate of Ahmad Raza. If I remember correctly from Mutala-e-Barelwiat, he held the same view as Ahmad Raza regarding the British Raj over India at the time and even had a couple of altercations with this friend of his. Will have to double check though.