What nverenuf said.
Its just a spring loaded ball switch. When the case is shifted into any 4x4 position a rail inside pushes it close completing the circuit, lighting the light.
The shifter just has a pass through bolt sometimes with a greaes fitting in the head of it and a grease passage drilled down through and out the side of the bolt.