Original: Curnow convinced Ned to let him go and then as soon as he was released he alerted the authorities by standing on the railway line near sunrise and waving a lantern wrapped in his red scarf.
Simplified: As soon as he was free he stood on the railway line waving a lantern (light) wrapped in his red scarf.