From 74acf8065ba17aa94515e8c6e14a6499f25366a8 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 19 Aug 2009 08:57:22 -0300 Subject: Use sha256 -q instead of | awk --- usr/local/www/system_firmware_auto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index cd36974..7eeb2f6 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -148,7 +148,7 @@ else if($needs_system_upgrade == true) $external_upgrade_helper_text .= "{$g['upload_path']}/latest.tgz"; -$downloaded_latest_tgz_sha256 = str_replace("\n", "", `sha256 {$g['upload_path']}/latest.tgz | awk '{ print $4 }'`); +$downloaded_latest_tgz_sha256 = str_replace("\n", "", `sha256 -q {$g['upload_path']}/latest.tgz`); $upgrade_latest_tgz_sha256 = str_replace("\n", "", `cat {$g['upload_path']}/latest.tgz.sha256 | awk '{ print $4 }'`); $sigchk = 0; -- cgit v1.1