Changeset 14829


Ignorieren:
Zeitstempel:
21.08.2018 22:44:56 (vor 5 Wochen)
Autor:
er13
Nachricht:

support hiding "vom Hersteller nicht unterstützte Änderungen" also in "no freetz"-mode

Ort:
trunk
Dateien:
2 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/fwmod_custom

    r14823 r14829  
    2626    # restore debug.cfg support (using Freetz script) 
    2727#   . ../../patches/scripts/114-debug_cfg_support.sh 
     28 
     29    # patch away / hide "vom Hersteller nicht unterstützte Änderungen" 
     30#   . ../../patches/scripts/195-patch_webmenu_signed.sh 
    2831 
    2932    # restore volume counter support, 7412 only (using Freetz script) 
  • trunk/patches/scripts/195-patch_webmenu_signed.sh

    r13355 r14829  
    22echo1 "applying webmenu signed patch" 
    33 
    4 for file in /usr/www/all/home/home.js /usr/www/avme/home/home.js; do 
    5     [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
    6     modsed 's/data[.]fritzos[.]FirmwareSigned/true/g' ${FILESYSTEM_MOD_DIR}${file} 
     4for oem in $(supported_brandings) all; do 
     5    [ -d "${FILESYSTEM_MOD_DIR}/usr/www/${oem}" -a ! -L "${FILESYSTEM_MOD_DIR}/usr/www/${oem}" ] || continue 
     6 
     7    for file in /usr/www/${oem}/home/home.js; do 
     8        [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
     9        modsed 's/data[.]fritzos[.]FirmwareSigned/true/g' ${FILESYSTEM_MOD_DIR}${file} 
     10    done 
     11 
     12    for file in /usr/www/${oem}/home/home.lua; do 
     13        [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
     14        modsed 's/^g_coninf_data[.]FirmwareSigned = .*/g_coninf_data.FirmwareSigned = "1"/g' ${FILESYSTEM_MOD_DIR}${file} 
     15    done 
     16 
     17    for file in /usr/www/${oem}/html/de/home/home.js /usr/www/${oem}/en/html/en/home/home.js; do 
     18        [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
     19        modsed 's/^.*var signed.*/\tvar signed = 1;/g' ${FILESYSTEM_MOD_DIR}${file} 
     20    done 
     21 
     22    for file in /usr/www/${oem}/system/diagnosis.lua /usr/lua/retrieve_data.lua; do 
     23        [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
     24        modsed 's,box[.]query("[^"]*/signed_firmware"),"1",g' ${FILESYSTEM_MOD_DIR}${file} 
     25    done 
    726done 
    8  
    9 for file in /usr/www/all/home/home.lua /usr/www/avme/home/home.lua; do 
    10     [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
    11     modsed 's/^g_coninf_data.FirmwareSigned = .*/g_coninf_data.FirmwareSigned = "1"/g' ${FILESYSTEM_MOD_DIR}${file} 
    12 done 
    13  
    14 for file in /usr/www/all/html/de/home/home.js /usr/www/avme/html/de/home/home.js /usr/www/avme/en/html/en/home/home.js; do 
    15     [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
    16     modsed 's/^.*var signed.*/\tvar signed = 1;/g' ${FILESYSTEM_MOD_DIR}${file} 
    17 done 
    18  
    19 for file in "${HTML_LANG_MOD_DIR##${FILESYSTEM_MOD_DIR}}/system/diagnosis.lua" /usr/lua/retrieve_data.lua; do 
    20     [ ! -e ${FILESYSTEM_MOD_DIR}${file} ] && continue 
    21     modsed 's,box[.]query("[^"]*/signed_firmware"),"1",g' ${FILESYSTEM_MOD_DIR}${file} 
    22 done 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.