yi-hack-Allwinner
yi-hack-Allwinner copied to clipboard
how can i edit ftppush.sh on working camera ?
i tried to edit ftppush.sh with ftp but cant save changes - ftruncate: No space left on device can i connect with ssh, stop some services and edit sh file ? without physical access i see error there
i have problem with ftp upload records on my router with padavan and ftp server on it camera upload records on pc's filezilla server normal, but dont want upload on router in same time i can create folders and files on router with other ftp client
log on router OK LOGIN: Client "192.168.1.128" FAIL MKDIR: Client "192.168.1.128", "/FTP/koridor//2021Y03M22D18H" OK LOGIN: Client "192.168.1.128" FAIL UPLOAD: Client "192.168.1.128", "/FTP/koridor/2021Y03M22D18H/29M28S32.mp4"
i think router can be more error sensitive than filezilla server
i want to delete "//"
FTP_DIR="${FTP_DIR}/"
fi
#
if [ "${FTP_DIR_TREE}" == "yes" ]; then
if [ ! -z "${FTP_DIR_HOUR}" ]; then
# Create hour directory on FTP server
echo -e "USER ${FTP_USERNAME}\r\nPASS ${FTP_PASSWORD}\r\nmkd ${FTP_DIR}/${FTP_DIR_HOUR}\r\nquit\r\n" | nc -w 5 ${FTP_HOST} 21 | grep "${FTP_DIR_HOUR}"
FTP_DIR_HOUR="${FTP_DIR_HOUR}/"
fi
fi
It works for me using WinScp in ftp mode.
dont work try to edit /home/yi-hack/script/ftppush.sh
Alternative is to copy it to sdcard and chmod +x it.
Or login with ssh and edit the file with vi.
hmm i tried to edit with vi say error - you need to give 755 to folder i tried chmod 755 script chmod: script: No space left on device
This is not good. Are you sure you are in the correct folder /home/yi-hack/script ?
yes cd /home/yi-hack/script vi ftppush.sh insert :wq error 755 to folder :q! cd.. chmod 755 script chmod: script: No space left on device
It is not normal for the file system to be full. Check for any strange files or reapply the hack again.
hmm, i dont know what can be strange and it's hard to get to the camera physically for reapply I'll wait for a new firmware update, where I hope the extra slash will be removed last time she updated normally by air
roleoroleo you didnt repair bug with double slash in last update
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.