I recently bought an XRB200 with most of the electrics smashed off. I was thinking I could replace the key ignition with a switch but am not quite sure how.

When I check the original configuration
- black/white is connected to green when the engine is off, Red and black are isolated.
- red and black are connected whent he engine is on, black/white and green are isolated

I want to use a switch that has a battery, a load and an earth terminal, but am not sure which wire belongs to which feed (except that battery is red).

Any help would be appreciated