Changeset 3049


Ignorieren:
Zeitstempel:
06.02.2009 21:37:16 (vor 9 Jahren)
Autor:
oliver
Nachricht:
  • Add hint for phone boxes with tam if there is not enough free space left for answering machine in jffs2 (closes #241)
Ort:
trunk
Dateien:
2 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/Config.in

    r3048 r3049  
    584584    help 
    585585        Select this if you have a box with phone support. 
     586 
     587config FREETZ_HAS_TAM 
     588    bool "Has TAM"      if FREETZ_TYPE_CUSTOM 
     589    depends on FREETZ_HAS_PHONE 
     590    default y               if \ 
     591        FREETZ_TYPE_FON_WLAN_7141 || \ 
     592        FREETZ_TYPE_FON_7150 || \ 
     593        FREETZ_TYPE_SPEEDPORT_W701V || \ 
     594        FREETZ_TYPE_SPEEDPORT_W900V || \ 
     595        FREETZ_TYPE_FON_WLAN_7170 || \ 
     596        FREETZ_TYPE_FON_WLAN_7240 || \ 
     597        FREETZ_TYPE_FON_WLAN_7270  
     598    default n               if \ 
     599        FREETZ_TYPE_FON || \ 
     600        FREETZ_TYPE_300IP_AS_FON || \ 
     601        FREETZ_TYPE_FON_5010 || \ 
     602        FREETZ_TYPE_FON_5050 || \ 
     603        FREETZ_TYPE_FON_5140 || \ 
     604        FREETZ_TYPE_FON_WLAN || \ 
     605        FREETZ_TYPE_FON_WLAN_7050 || \ 
     606        FREETZ_TYPE_FON_WLAN_7113 || \ 
     607        FREETZ_TYPE_FON_WLAN_7140 || \ 
     608        FREETZ_TYPE_CUSTOM 
     609    help 
     610        Select this if you have a box with TAM (Telephone Answering Machine) support. 
    586611 
    587612config FREETZ_HAS_WLAN 
  • trunk/fwmod

    r3018 r3049  
    10941094 
    10951095    echo1 "kernel image size: $KERNEL_SIZE (max: $KERNEL_LIMIT, free: $((-DIFF)))" 
     1096 
     1097    if [ "$KERNEL_SIZE" -eq 0 ]; then 
     1098        error 1 "kernel image is empty" 
     1099    fi 
     1100    if [ "$KERNEL_SIZE" -gt "$KERNEL_LIMIT" ]; then 
     1101        error 1 "kernel image is $DIFF bytes too big" 
     1102    fi 
    10961103    if [ "$FREETZ_VERBOSITY_LEVEL" -ge 1 ]; then 
    1097         if [ "$FREETZ_TYPE_FON_7150" = "y" ]; then 
     1104        if [ "$FREETZ_HAS_TAM" = "y" ]; then 
    10981105            # Calculate aproximately free space in seconds for the answering machine 
    10991106            FREE_BYTE_JFFS2=$((($KERNEL_LIMIT - $KERNEL_SIZE - 233472))) 
    11001107            FREE_MINUTES=$((($FREE_BYTE_JFFS2 / 2017 / 60))) 
    1101             echo "${L1}Aproximately free time for the answering machine: $((($FREE_BYTE_JFFS2 / 2017)))s (${FREE_MINUTES}min $((($FREE_BYTE_JFFS2 / 2017 - $FREE_MINUTES * 60)))s)" 
    1102         fi 
    1103     fi 
    1104     if [ "$KERNEL_SIZE" -eq 0 ]; then 
    1105         error 1 "kernel image is empty" 
    1106     fi 
    1107     if [ "$KERNEL_SIZE" -gt "$KERNEL_LIMIT" ]; then 
    1108         error 1 "kernel image is $DIFF bytes too big" 
    1109     fi 
    1110  
     1108            if [ "$FREE_BYTE_JFFS2" -gt 0 ]; then 
     1109                echo "${L1}Aproximately free time for the answering machine: $((($FREE_BYTE_JFFS2 / 2017)))s (${FREE_MINUTES}min $((($FREE_BYTE_JFFS2 / 2017 - $FREE_MINUTES * 60)))s)" 
     1110            else 
     1111                echo "${L1}WARNING: Not enough free flash space for answering machine!" 
     1112            fi 
     1113        fi 
     1114    fi 
    11111115    # Do we have the tool ? 
    11121116    if [ ! -x "$TICHKSUM" ]; then 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.