mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-01-26 01:34:43 +01:00
Improved md5 comparison in picodrive.sh
This commit is contained in:
parent
ddf7ea2e7b
commit
dbc96a9341
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user