you need to alter the code make it look like this
# 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
:wq
then re-open the file to verify the editing worked by typing this
vi upgrade.cgi
if the edition is good save and exist by typing the following
:q
once done , restart the miner . and try to upload the firmware.
* 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.
Being honest, it seems very simple, Add # at the beginning of the first 15 lines and delete (Key delate) the last 5 #, but now my questions are...
1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)
2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?