.titleBar { margin-bottom: 5px!important; }

kernel_args into 7141: a question

Dieses Thema im Forum "FRITZ!Box Fon: Modifikationen" wurde erstellt von Alpamayo, 23 Dez. 2006.

  1. Alpamayo

    Alpamayo Neuer User

    Registriert seit:
    13 Dez. 2006
    Beiträge:
    45
    Zustimmungen:
    0
    Punkte für Erfolge:
    6
    Hello,
    I have a Fritz!Box Fon Wlan 7141, firmware version 40.04.15, annex B.
    I wanted to convert it to Annex A (since I live in Italy) and took a look at Haveaniceday's patch named:

    fritz_as_avm_annex_a_kernel_args.tar

    Such patch does NOT work on my 7141 and I also noticed that the directory /proc/avalanche/env does NOT exist.

    Using telnet I found the environment directory in a different position:

    /proc/sys/urlader/environment

    The question is: do I have to change the script to reflect the new environment directory? Is the script I'm posting below correct?

    Code:
    #! /bin/sh
    INSTALL_SUCCESS_REBOOT=1
    INSTALL_OTHER_ERROR=6
    
    LED_DEVICE=/proc/led_mod/led
    if [ ! -f /proc/led_mod/led  ] ; then
        LED_DEVICE=/var/led
        echo "set led: ${LED_DEVICE}"
    fi
    ##################################################################################
    # Power LED blinken lassen
    ##################################################################################
    echo "set INFO led to blink (modul=7, state=4)"
    echo 7,4>${LED_DEVICE}
    
    
    PROVIDER=avm
    ######################
    if [ ! -d /usr/www/$PROVIDER ]
    then
        echo 7,1>${LED_DEVICE}
        /sbin/reboot &
        exit $INSTALL_OTHER_ERROR
    fi
    
    # Box auf $PROVIDER setzen
    echo "firmware_version $PROVIDER" > /proc/sys/urlader/environment 
    echo "kernel_args annex=A" > /proc/sys/urlader/environment
    
    echo 'echo $0: done' >/var/post_install
    chmod +x /var/post_install
    echo "set INFO led to blink (modul=7, state=4)"
    echo 7,4>${LED_DEVICE}
    exit $INSTALL_SUCCESS_REBOOT
    
    Thanks for your help and Merry Christmas.