Liam McDermid, 25, used the device to try to secure the firearm which had been hidden in undergrowth at Edinburgh’s Roseburn cycle path.