1) Take a pillion to watch the gauge!!! LOL1) go for a ride with the gauge connected,
2) but I’m fairly convinced that it’s electrical. But then!,
2) It's just a positive feed to the lamp and then to ground through the switch, via a ball bearing in the interior of the switch with a spring pressing it up against a contact which at zero pressure just completes the circuit
Once you start the engine and have pressure the oil pressure pushes the ball bearing off the contact and bingo connection broken and the Oil light goes out
You can do the same thing with a low amp fused wire with a crocodile clip off the positive through a bulb and to the switch
Nominally it will be on and once you start up and have oil pressure the bulb will extinguish