diff --git a/README.md b/README.md index 2741969ed..5a3c558a9 100644 --- a/README.md +++ b/README.md @@ -204,12 +204,26 @@ shasum -a 256 --ignore-missing --check seedsigner.0.6.*.sha256 **On Windows (inside Powershell):** Run this command ``` -CertUtil -hashfile seedsigner_os.0.6.0.Insert_Your_Pi_Models_binary_here_For_Example_pi02w.img SHA256 +<# +Read the contents of the manifest file (seedsigner.0.6.0.sha256) and +loop through each line to check +if the computed hash matches the expected hash.#> +Get-Content seedsigner.0.6.0.sha256 | ForEach-Object { + + # Split each line to extract the binary filename and its expected hash. + $hash, $filename = $_ -Split ' ' + + # Check if the binary file exists, + if ((Test-Path $filename) -eq $True) { + + # check if the computed hash matches the expected hash + write-host $filename ('FAILED: Computed checksum did NOT match!', 'is OK.')[((Get-FileHash $filename).hash -eq $hash)] + } +} <#Press Enter to begin the hash verification.#> ``` -On Windows, you must then manually compare the resulting file hash value to the corresponding hash value shown inside the .SHA256 cleartext file.
-Wait up to 30 seconds for the command to complete, and it should display: +When the OSX/Linux/Windows command completes it should display: ``` seedsigner_os.0.6.x.[Your_Pi_Model_For_Example:pi02w].img: OK ```