To establish schools of different grades and to adopt regulations for the admission of pupils into them; however, in any district having less than 2,000 inhabitants no grades above the eighth shall be maintained unless they were maintained during the school year ended June 30, 1949.
105 ILCS 5/10-21.2