roleoroleo / yi-hack-Allwinner

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
441 stars 66 forks source link

how can i edit ftppush.sh on working camera ? #261

Closed EvgenPavlyuchek closed 4 months ago

EvgenPavlyuchek commented 3 years ago

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
Catfriend1 commented 3 years ago

It works for me using WinScp in ftp mode.

EvgenPavlyuchek commented 3 years ago

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

Catfriend1 commented 3 years ago

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

roleoroleo commented 3 years ago

Or login with ssh and edit the file with vi.

EvgenPavlyuchek commented 3 years ago

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

roleoroleo commented 3 years ago

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

EvgenPavlyuchek commented 3 years ago

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

roleoroleo commented 3 years ago

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

EvgenPavlyuchek commented 3 years ago

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 commented 3 years ago

roleoroleo you didnt repair bug with double slash in last update

github-actions[bot] commented 5 months ago

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.