From dbc96a9341d49ae1ae1ce7022dc951b58666b005 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 15 Aug 2021 10:27:04 +0200 Subject: [PATCH] Improved md5 comparison in picodrive.sh --- picodrive.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/picodrive.sh b/picodrive.sh index 43c93d87..cded5021 100755 --- a/picodrive.sh +++ b/picodrive.sh @@ -1,7 +1,6 @@ #!/bin/sh # Check md5 of the PicoDrive binary in /usr/games -myhash=$(md5sum /usr/games/PicoDrive | cut -d' ' -f1) -if [ $myhash != "5b42024e8e3a20e5a8b58ccd203b7c90" ] || [ ! -f /usr/games/PicoDrive ]; then +if [ `md5sum /usr/games/PicoDrive | cut -d' ' -f1` != `md5sum PicoDrive | cut -d' ' -f1` ]; then rw cp -f PicoDrive /usr/games ro