Displaying 1 result from an estimated 1 matches for "checksum_start".
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...files might not be (eg. because we rely on the
- * ordering of readdir). Uncomment the second line to see the output
- * before hashing.
- */
-static const char *shacmd = "sort | sha256sum | awk '{print $1}'";
-//static const char *shacmd = "sort | cat";
-
-static void
-checksum_start (const char *hostcpu, const char *appliance,
- const char *modpath, const char *initrd)
-{
- pp = popen (shacmd, "w");
- if (pp == NULL)
- error (EXIT_FAILURE, errno, "popen: command failed: %s", shacmd);
-
- fprintf (pp, "%s %s %s %d\n",
-...