[PATCH v2 10/18] initscript functions: add readhash