*
* This function sets the state of all switches of given type,
* unless a specific switch is claimed by userspace (in which case,
*
* This function sets the state of all switches of given type,
* unless a specific switch is claimed by userspace (in which case,