The pupils who serve as members of a school safety patrol shall be designated by the principal of the school in which the patrol is established, but no pupil shall be designated to serve on any patrol unless the pupil and the person having legal custody of such pupil consent, in writing, thereto. Upon the revocation, in writing, of the consent of either such pupil or such person, the pupil shall cease to be a member of the patrol.