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

how can i edit ftppush.sh on working camera ?

Open EvgenPavlyuchek opened this issue 3 years ago • 10 comments

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

EvgenPavlyuchek avatar Mar 22 '21 16:03 EvgenPavlyuchek

It works for me using WinScp in ftp mode.

Catfriend1 avatar Mar 26 '21 22:03 Catfriend1

dont work try to edit /home/yi-hack/script/ftppush.sh

EvgenPavlyuchek avatar Mar 27 '21 00:03 EvgenPavlyuchek

Alternative is to copy it to sdcard and chmod +x it.

Catfriend1 avatar Mar 27 '21 04:03 Catfriend1

Or login with ssh and edit the file with vi.

roleoroleo avatar Mar 27 '21 09:03 roleoroleo

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

EvgenPavlyuchek avatar Mar 30 '21 13:03 EvgenPavlyuchek

This is not good. Are you sure you are in the correct folder /home/yi-hack/script ?

roleoroleo avatar Mar 30 '21 14:03 roleoroleo

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

EvgenPavlyuchek avatar Mar 30 '21 14:03 EvgenPavlyuchek

It is not normal for the file system to be full. Check for any strange files or reapply the hack again.

roleoroleo avatar Mar 30 '21 14:03 roleoroleo

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

EvgenPavlyuchek avatar Mar 30 '21 15:03 EvgenPavlyuchek

roleoroleo you didnt repair bug with double slash in last update

EvgenPavlyuchek avatar Apr 15 '21 07:04 EvgenPavlyuchek

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.

github-actions[bot] avatar Apr 07 '24 02:04 github-actions[bot]