Changeset 378 for trunk

Show
Ignore:
Timestamp:
09/12/09 21:07:52 (3 years ago)
Author:
scriado
Message:

Corregido parceo de variables en nw_conf

Location:
trunk/nightwing
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/nightwing/etc/CHANGELOG

    r352 r378  
    88* FIX: wireless config. hwmode replace mode for wireless mode (11b, 11bg, 11g) 
    99* FIX: nw_conf. wireless mode 
     10* FIX: nw_conf. Variables parsing 
    1011 
    1112Versión 0.6-beta4 
  • trunk/nightwing/usr/bin/nw_conf

    r352 r378  
    6262                echo "Enter new value: " 
    6363                read NEWVALUE 
    64                 uci set $1=$NEWVALUE 
     64                uci set $1="$NEWVALUE" 
    6565                if [ $2 ]; then 
    6666                 uci set $WIFIDOG_CHANGE=1 
     
    234234                if [[ "${#WPA2PASS}" -gt 7 && "${#WPA2PASS}" -lt 64 ]]; 
    235235                then 
    236                         uci set $W_PRIVATE_KEY=$WPA2PASS 
     236                        uci set $W_PRIVATE_KEY="$WPA2PASS" 
    237237                        uci commit wireless 
    238238                else 
     
    265265                case $MODE in 
    266266                        11b|11g|11bg) 
    267                                         uci set $WMODE=$MODE 
     267                                        uci set $WMODE="$MODE" 
    268268                                        uci commit wireless 
    269269                                        ;; 
     
    299299                    if [[ ! -z "$1" && "$1" -gt "0" ]]; 
    300300                        then 
    301                         uci set $2=${1} 
     301                        uci set $2="${1}" 
    302302                        uci commit nwnode 
    303303                    else 
     
    305305                        sleep 2 
    306306                        echo $YESNO_MSG 
    307                         case_public_ap_rate                      
     307                        case_public_ap_rate 
    308308                    fi 
    309309                else 
     
    465465                case $CH in 
    466466                        1|2|3|4|5|6|7|8|9|10|11) 
    467                                 uci set $CHANNEL=$CH 
     467                                uci set $CHANNEL="$CH" 
    468468                                uci commit wireless 
    469469                                ;; 
     
    500500                        if [ "${#NEWVALUE}" -lt "$LENGTH" ]; 
    501501                                then 
    502                                         uci set $1=${NEWVALUE}-${NODE_ID} 
    503                                         uci set $2=$NEWVALUE 
     502                                        uci set $1="${NEWVALUE}"-"${NODE_ID}" 
     503                                        uci set $2="$NEWVALUE" 
    504504                                        uci commit wireless 
    505505                                        uci commit nwnode 
     
    690690                                        if [[ ! -z "$NEWVALUE" && "$NEWVALUE" -gt "0" ]]; 
    691691                                            then 
    692                                                 uci set $GATEWAY_CLASS=${NEWVALUE} 
     692                                                uci set $GATEWAY_CLASS="${NEWVALUE}" 
    693693                                                uci commit bmxd 
    694694                                            else