Ignore:
Timestamp:
2012-03-07T12:47:52+01:00 (5 years ago)
Author:
jow
Message:

multiwan package: use less iptables -F

Hi

Even if "qos-scripts" package isn't installed, multiwan is flushing all the mangle chains.
This patch correct this behavior to let people use mangle table if qos-scripts is not there (to use there own qos script ...)

Info: For the moment the qos management of the multiwan package is broken (it's speaks about IMQ, instead of IFB)

The package version go from 1.0.20 to 1.0.21 (and not 1.0.19) because there is this patch also pending (http://patchwork.openwrt.org/patch/1740/)

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/multiwan/files/usr/bin/multiwan

    r30832 r30833  
    258258    local group  
    259259 
    260     iptables -t mangle -F PREROUTING  
    261     iptables -t mangle -F FORWARD 
    262     iptables -t mangle -F POSTROUTING 
    263     iptables -t mangle -F OUTPUT 
     260    iptables -t mangle -D PREROUTING -j MultiWan 
     261    iptables -t mangle -D FORWARD -j MultiWan 
     262    iptables -t mangle -D OUTPUT -j MultiWan 
     263    iptables -t mangle -D POSTROUTING -j MultiWan 
    264264    iptables -t mangle -F MultiWan 
    265265    iptables -t mangle -X MultiWan 
     
    286286 
    287287    if [ ! -z "$CHKFORQOS" ]; then 
     288        iptables -t mangle -F PREROUTING 
     289        iptables -t mangle -F FORWARD 
     290        iptables -t mangle -F OUTPUT 
     291        iptables -t mangle -F POSTROUTING 
    288292        iptables -t mangle -F MultiWanQoS 
    289293        iptables -t mangle -X MultiWanQoS 
Note: See TracChangeset for help on using the changeset viewer.