Added write-devices.diff patch from Darryl Dixon.