Post
Topic
Board Mining (Altcoins)
Re: "Cannot find Signature"... What's this?
by
mikeywith
on 26/12/2018, 21:58:52 UTC
you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do not restart the miner
*do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.

EDITED : thanks to yonydouna and effud for correcting the restart part.