feeds a Gray/Brown wire, and a Gray/Brown/Yellow wire that run trough the Trunk Hinge Harness.
Do a search under Hinge Harness and you will find plenty of information on this miserable bug on E34's.
Javier
Edit: An easy check is to remove LKM to verify if bug is related to Lamp circuits after LKM (like trunk hinge).