Ticket #10022: qos-bridge_fix.patch

File qos-bridge_fix.patch, 775 bytes (added by Nenad Opsenica <nenad@…>, 6 years ago)
  • package/qos-scripts/files/usr/lib/qos/generate.sh

    commit a124256f48884a72bcb5ede79403fe84552de267
    Author: Nenad Opsenica <nenad@vtkom.com>
    Date:   Mon Aug 29 14:25:32 2011 +0200
    
        qos-scripts: fix error when attaching QoS to bridge interface
    
    diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh
    index fa866f7..8487824 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