I dont have the diagram nearby but, i would think you could move the power wire to the relay to a ign power and move the ground wire to the foglamp switch. Should be close to the functionality you want without consulting the esm.
......And just as they're about to catch me.....Twin......Turbos......Kick.......In!