Add mackay settings stuff directly to script

Change-Id: I356302f9ff7632a2f4415552dd86a9bc968ecc10