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 is - when should this be started?
Why this terrible complicated thing? Because there are about 5 or more hardware revisions of the AVM Fritzbox 3370. Now, the first hardware revision is not supported by openwrt (and the box can go in the recycle bin. But I know (by opening the housing that, by the chipset I do not have hardware revision 5 (this is important because the revision had two different - incompatible with the respective fw - NAND chips.
Okay.
Now what is left of the problem is to make sure it is not a hardware revision 1. So the box sends an info over FTP when booting up. But only for a few seconds. In order to capture it, you need not only to send a request but to run a re-request until an answer is available. Which will contain the desired information.
You can only request this information in a short window during router boot-up?
I need to script that and can ftp simply do this? What do I have to set as firewall in Leap? Simply switch it off is best I guess, during operation? thank you.
This sounds like it will outbound from your Leap15 machine to your router, so no firewall changes required. -- Per Jessen, Zürich (7.2°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org