Ticket #10022: qos-bridge_fix-take2.patch

File qos-bridge_fix-take2.patch, 954 bytes (added by Nenad Opsenica <nenad@…>, 5 years ago)

final patch, previous one is bogus

  • package/qos-scripts/files/usr/lib/qos/generate.sh

    diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh
    index fa866f7..812978b 100755
    a b start_interface() { 
    282282        local iface="$1" 
    283283        local num_imq="$2" 
    284284        config_get device "$iface" device 
     285        config_get type "$iface" type 
     286        [ "$type" = "bridge" ] && { 
     287                config_get device "$iface" ifname 
     288        } 
    285289        config_get_bool enabled "$iface" enabled 1 
    286290        [ -z "$device" -o 1 -ne "$enabled" ] && { 
    287291                return 1  
    start_cg() { 
    413417                if_device=$(find_ifname ${iface}) 
    414418                config_get classgroup "$iface" classgroup 
    415419                config_get device "$iface" device 
     420                config_get type "$iface" type 
     421                [ "$type" = "bridge" ] && { 
     422                        config_get device "$iface" ifname 
     423                } 
    416424                config_get imqdev "$iface" imqdev 
    417425                config_get upload "$iface" upload 
    418426                config_get download "$iface" download