Ergebnis 1 bis 6 von 6

Thema: How to add a script??

  1. #1
    IPPF-Fan
    Registriert seit
    04.01.2006
    Beiträge
    209

    How to add a script??

    It has been suggested to me to add this script to make work dyndns:
    wget -O - "http://USER:PASSWORD@members.dyndns.org/nic/update?hostname=HOST.dyndns.org" | cat
    and after
    Put it with some "sleep 60" into your /var/flash/debug.cfg in the background to execute. It will update once.
    The thread is this, but I haven't understood how to add that script to the 7050.
    Can anyone suggest to me a "step by step for dummy" explanation to make it work?
    Thanks.

  2. #2
    Semi-Moderator Avatar von danisahne
    Registriert seit
    30.07.2005
    Ort
    Marktoberdorf
    Beiträge
    1.493
    You have to get telnet access first. Upload the attached file as a firmware update (it's just a pseudo update; you can untar the image and have a look at ./var/install if you want to check what it actually does) and login via telnet with your web password:
    Code:
    telnet <ip-of-box> 23
    Now you have fully operable linux in front of you. Google for the editor vi an learn how to use it. Then type
    Code:
    nvi /var/flash/debug.cfg
    Never ever use vi at this file, always use the wrapper script nvi! The content of /var/flash/debug.cfg is executed at boot time, so you could also add
    Code:
    /usr/sbin/telnetd -l /sbin/ar7login
    to have permanent telnet access (with the image attached, telnet access is gone after a reboot).

    After editing you should restart the box, because a firmware update (also pseudo ones) stops all necessary daemons for Internet access.

    Regards,
    danisahne
    Angehängte Dateien Angehängte Dateien

    Router: SMC 7008 BR hinter Fritz!Box Fon WLAN 7050 (UI) FW: 14.04.15ds-0.2.8
    Provider: 1und1 DSL 6000 mit (leider nur) 3130/406 kbps (Down/Up)

  3. #3
    IPPF-Fan
    Registriert seit
    04.01.2006
    Beiträge
    209
    I already can connect by telnet to the box without any image...
    Where do I have to put that script? In debug.cfg?? What command do I have to use in NVI?

  4. #4
    Semi-Moderator Avatar von danisahne
    Registriert seit
    30.07.2005
    Ort
    Marktoberdorf
    Beiträge
    1.493
    Zitat Zitat von danisahne
    Google for the editor vi an learn how to use it. Then type
    Code:
    nvi /var/flash/debug.cfg
    Never ever use vi at this file, always use the wrapper script nvi!
    Like I said. Edit the file with nvi.

    Router: SMC 7008 BR hinter Fritz!Box Fon WLAN 7050 (UI) FW: 14.04.15ds-0.2.8
    Provider: 1und1 DSL 6000 mit (leider nur) 3130/406 kbps (Down/Up)

  5. #5
    IPPF-Fan
    Registriert seit
    04.01.2006
    Beiträge
    209
    I'm noob, and I don't wanna destroy my box. Can you bother to tell me exactly what I have to type once connected in telnet? I don't understand those commands, and I don't wanna damage anyhting.
    NVI? And how to edit that file adding that string, even if the string had to be inserted there... just act plz as I am a noob

  6. #6
    IPPF-Fan
    Registriert seit
    04.01.2006
    Beiträge
    209
    Can I add that string as a pseudo image?? How to build a pseudo image?
    7050 avm german annexB patched to annexA -firm 14.04.25 + telnet, Enum, callmessage.sh
    -ADSL2+ annexA
    7270 v3 german to international - firm 74.05.06
    Fon MT-D - firm 02.48

Ähnliche Themen

  1. Statusabfrage #96*... per Script?
    Von asm386 im Forum FRITZ!Box Fon: Modifikationen
    Antworten: 6
    Letzter Beitrag: 14.07.2010, 11:56
  2. AGI-Script
    Von humpflepuff im Forum Asterisk Skripte
    Antworten: 9
    Letzter Beitrag: 24.08.2008, 01:19
  3. Script für Schrift
    Von One_Touch im Forum MSN Messenger/ Windows Live Messenger
    Antworten: 1
    Letzter Beitrag: 17.09.2007, 11:28
  4. Einfaches Script
    Von rajan im Forum Cisco
    Antworten: 0
    Letzter Beitrag: 02.10.2006, 19:43
  5. Help with a script
    Von zooster im Forum FRITZ!Box Fon: Modifikationen
    Antworten: 29
    Letzter Beitrag: 08.03.2006, 10:59

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •