build: use mkhash to replace various quirky md5sum/openssl calls
[openwrt/staging/yousong.git] / scripts / combined-ext-image.sh
index 374fe6e34413863af22d8b81cab7246128307239..0c7b1d993d45e85a31546d1d5c8ce4db9edd8e07 100755 (executable)
@@ -47,7 +47,7 @@ while [ "$#" -gt 1 ]
 
       [ ! -f "$file" ] && echo "$ME: Not a valid file: $file" && usage
       FILES="$FILES $file"
-      md5=$(cat "$file" | md5sum -)
+      md5=$(mkhash md5 "$file")
       printf "%-32s%08x%32s" "$filename" $(stat -c "%s" "$file") "${md5%% *}" >> $IMG_OUT
       shift 2
    done