In data domenica 2 dicembre 2018 12:09:47 CET, Per Jessen ha scritto:
Per Jessen wrote:
stakanov wrote:
In data domenica 2 dicembre 2018 10:29:19 CET, Per Jessen ha scritto:
stakanov wrote:
Hi, I wish to ftp "within the first seconds of boot" of a fritzbox router in order to check for the hw revision. Idea is, that, since EOL, a flash with openwrt is indicated and could revive the box. I am on leap15, which ftp program would allow this in the most appropriate and easy way? I guess it would be good to switch of the firewall or to use "trusted" zone for the eth when I do it. Did anybody do this in the past and could give some hint?
Assuming I have understood what it is you want, it seems to me 'ftp' is the simple answer. It is easy to script.
well, it has to be a program that sends a continuous ftp request and logs in as soon as ftp becomes available.
I think maybe netcat or telnet could help with that - a loop looking to connect to port 22, once available it skips to ftp. The question
s/22/21/ So port is actually 21. The info is only available shortly after boot: From their website: Within the first seconds after power on a ftp connection needs to be established to the FRITZ!Box at 192.168.178.1 and the the following ftp commands need to be run: ftp> quote USER adam2 ftp> quote PASS adam2 ftp> binary ftp> debug ftp> passive ftp> quote SETENV linux_fs_start 0 ftp> quote MEDIA FLSH ftp> put /path/to/openwrt-lantiq-xrx200-avm_fritz3370-rev2-micron-squashfs-eva-kerne l.bin mtd1 ftp> put /path/to/openwrt-lantiq-xrx200-avm_fritz3370-rev2-micron-squashfs-eva-files ystem.bin mtd0
What they do not say is what to set in the fritzbox, I resettet to factory default and set to "exposed host" for not having problems. I took the laptop and did attribute a static ip, I granted it unlimited rights. Still I am not able to get an ftpconnect. I tried without setting internet provider and with setting "over lan" using to connect the second ethernet port of the router (as the producer said). I am overlooking something. Just do not know what. Connection "times out" but seems to be established. _________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postf�cher sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org