Probably not helpful for many, but here's a Mod for those using a posi-lock or solid D30 front axle swap and want th 4wd light to be usable when the Transfer Case is in 4wd gears.
A few years ago I did away with my factory vacuum CAD and installed the Alloy USA version of the cable disconnect. I know there are Two schools of thought, and I agree that a perfectly working CAD is absolutely effective and functional and does away with worries about the cable stretching or slipping and I take no issues with that school of thought.
I personally don't care for dealing with vacuum issues of any kind and after 2 melted vacuum harnesses, and attempts at getting everything dialed in I gave up and went to the Cable. I either am 4 wheeling or I am not, I engage the cable when I leave the pavement and disconnect it when I hit the road again and stop to air up.
My issue is when I'm out bouncing around, the light is always on, and sometimes I'll run all day in 4H. I wanted a reminder to go back into 2h when I didn't need it.
Replacing the vacuum switch with an electronic transfer case gear switch from a TJ and using the wiring to the firewall switch will complete the circuit give your in/out indicator on the dash a purpose again for those running a solid axle. Looping in the TJ electric switch to the cable electric switch will get you 4wd when both the cable and the TC are engaged rather than just the cable.
Here's the TJ switch and Weatherpack style connector I used.

I ran the ground back to the engine with the circuit for easier access to attach, but you can ground the one side anywhere along the frame or tub that has a solid ground point

My non professional wiring diagram
Story’s Author
