mnakada / atomcam_tools

Hack tool for atomcam and wyzecam.
Other
178 stars 22 forks source link

fixed mv.sh and rm.sh scripts to execute curl command #83

Closed kitazaki closed 6 months ago

kitazaki commented 7 months ago

fixed mv.sh and rm.sh scripts.

error below occurs to execute curl command. -sh: /tmp/system/lib/ld.so.1: not found

kitazaki commented 7 months ago

alert image displayed on Node-RED flow.

スクリーンショット 2024-01-24 11 41 24

kitazaki commented 7 months ago

ありがとうございます。 SSHログイン環境で実行しました。 chroot環境で試してみます。

kitazaki commented 7 months ago

added -k option to fix error setting certificate verify locations

(before)

# LD_LIBRARY_PATH=/tmp/system/lib:/usr/lib /tmp/system/lib/ld.so.1 /tmp/system/bin/curl https://www.yahoo.co.jp
curl: (77) error setting certificate verify locations:
  CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs

(after)

# LD_LIBRARY_PATH=/tmp/system/lib:/usr/lib /tmp/system/lib/ld.so.1 /tmp/system/bin/curl -k https://www.yahoo.co.jp
mnakada commented 7 months ago

I understood your intention. But some people need secure access, so I will add a toggle switch to the web UI. Please wait a few days.

kitazaki commented 6 months ago

Don't worry for taking time, I tried to recreate SquashFS image file and it works fine for me so far.

mnakada commented 6 months ago

I have added a switch to the WebHook item in the WebUI to support curl insecure in Ver. 2.0.0pre4.

kitazaki commented 6 months ago

Thanks for adding an insecure option, confirmed to work.