Changeset 28623


Ignore:
Timestamp:
2011-10-27T14:39:19+02:00 (6 years ago)
Author:
jow
Message:

Add QoS firewall stop script generation

To prevent code duplication for clearing QoS firewall rules, support
"firewall stop" arguments to generate.sh to generate the necessary
script commands. Make use of this from qos-stop.

Signed-off-by: Kevin Locke <klocke@…>

Location:
trunk/package/qos-scripts/files/usr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/qos-scripts/files/usr/bin/qos-stop

    r25640 r28623  
    44        tc qdisc del dev "$iface" root 2>&- >&- 
    55done 
    6 iptables -t mangle -F 
    7 iptables -t mangle -X 
     6/usr/lib/qos/generate.sh firewall stop | sh 
  • trunk/package/qos-scripts/files/usr/lib/qos/generate.sh

    r28622 r28623  
    487487        ;; 
    488488        firewall) 
    489                 start_firewall 
     489                case "$2" in 
     490                        stop) 
     491                                stop_firewall 
     492                        ;; 
     493                        start|"") 
     494                                start_firewall 
     495                        ;; 
     496                esac 
    490497        ;; 
    491498esac 
Note: See TracChangeset for help on using the changeset viewer.