[PATCH 12/21] initscript functions: add readhash