An automatic layncd update script