yi-hack-v4 icon indicating copy to clipboard operation
yi-hack-v4 copied to clipboard

Problem update remote version

Open SirkeS opened this issue 5 years ago • 7 comments

I have the same problem on my four cameras

/home/yi-hack-v4 # wget https://raw.githubusercontent.com/TheCrypt0/yi-hack-v4/master/VERSION Connecting to raw.githubusercontent.com (151.101.64.133:443) wget: note: TLS certificate validation not implemented wget: TLS error from peer (alert code 40): handshake failure wget: error getting response: Connection reset by peer

SirkeS avatar Dec 08 '20 13:12 SirkeS

Yes, it happened to me also. In order to solve I connected via ssh and commented two lines at the end of script/system.sh referring to check_update.sh I think this maybe is related to the version of wget inside busybox?

kani85 avatar Dec 26 '20 00:12 kani85

Yes, it happened to me also. In order to solve I connected via ssh and commented two lines at the end of script/system.sh referring to check_update.sh I think this maybe is related to the version of wget inside busybox?

Thanks for the workaround, seems that it works!

vcasado avatar Dec 27 '20 16:12 vcasado

Hi guys, thanks for the report! You are right, it seems like GitHub changed its minimum TLS scheme and the current wget on the camera doesn't have it supported.

Removing the lines you referred to along with the cronjob that calls check_update.sh (old version of the fw) will do the trick.

TheCrypt0 avatar Dec 28 '20 07:12 TheCrypt0

Can someone write a guide on how to do this for those who dont know how?

(for example, I can ssh to the unit, I can ls/cd around, but the rest is lost on me)

Hammerfest avatar Jan 02 '21 01:01 Hammerfest

Can someone write a guide on how to do this for those who dont know how?

(for example, I can ssh to the unit, I can ls/cd around, but the rest is lost on me)

This is what I did:

  1. Log in via SSH.

  2. Open file system.sh under folder script: vi /home/yi-hack-v4/script/system.sh

  3. Enter edit mode pressing key 'i'.

  4. Scroll down and comment the lines 83 and 85:

    #$YI_HACK_PREFIX/script/check_update.sh #crond -c $YI_HACK_PREFIX/etc/crontabs

  5. Press 'ESC' to exit edit mode and then type ":w" and press Enter to save changes.

  6. Reboot!

vcasado avatar Jan 02 '21 10:01 vcasado

Method 2:

Login via SSH. Open file system.conf under folder script: vi /home/yi-hack-v4/etc/system.conf

Enter edit mode pressing key 'i'.

Scroll down and change value CHECK_UPDATES=no

Press 'ESC' to exit edit mode and then type ":w" and press Enter to save changes.

Reboot!

SirkeS avatar Jan 02 '21 17:01 SirkeS

~~Both of you mention OPEN, but not HOW to open, probably the only thing I am missing here.~~ ~~EDIT: of course, prior to those posts and with them i did try to google how to open a file over ssh, no joy there talking about 3rd party text editors and commands that did nothing~~ ~~EDIT2: got system.conf open with vi, but hitting esc does nothing, was using windows ssh, switched to putty/kitty doesnt seem to do anything, it seemed like it but after typing :w in a random attempt after making the edit, couldnt get out of the edit mode.~~ ~~EDIT3: ok, despite the fact that nothing shows at all when you hit esc and type, it actually did save the file edit, now to try with system.sh EDIT4: "#" is not implemented when trying to add this to line 83/85~~ ~~EDIT5: re-reading both posts, I see vi is in the posts, but for whatever reason, I was not seeing it, it was invisible to me...~~

ID10T error

Hammerfest avatar Jan 02 '21 19:01 Hammerfest