[PATCH v2 10/14] bootstd: Correct handling of script from network