]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Start ip rules prio from 10000 and increment (not decrement) by 5.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 18 Apr 2012 06:29:11 +0000 (06:29 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 18 Apr 2012 06:29:11 +0000 (06:29 +0000)
svn-id: @12553

lib/functions.network

index ca897e3db4bd255f289158df8ebfbc692b162235..6b03d4b82c2fb94e2227d3262b08e8cb8733d30a 100644 (file)
@@ -473,13 +473,13 @@ setup_ip_rules ()
 
        if [ -f /etc/sysconfig/static-routes ]; then
                if is_yes "$1"; then
-                       i=20000
+                       i=10000
                        grep -E "^(from|to|iif|tos|fwmark|dev|pref|priority|prio)[[:blank:]]" /etc/sysconfig/static-routes | while read args; do
                                prio=""
                                if [ "${args##* prio }" = "$args" ]; then
                                        # no "prio" used in rule, use own prio
                                        prio="prio $i"
-                                       i=$((i - 10))
+                                       i=$((i + 5))
                                fi
                                /sbin/ip rule add $args $prio
                        done
@@ -492,13 +492,13 @@ setup_ip_rules ()
        is_no "$IPV6_NETWORKING" && return
        if [ -f /etc/sysconfig/static-routes6 ]; then
                if is_yes "$1"; then
-                       i=20000
+                       i=10000
                        grep -E "^(from|to|iif|tos|fwmark|dev|pref|priority|prio)[[:blank:]]" /etc/sysconfig/static-routes6 | while read args; do
                                prio=""
                                if [ "${args##* prio }" = "$args" ]; then
                                        # no "prio" used in rule, use own prio
                                        prio="prio $i"
-                                       i=$((i - 10))
+                                       i=$((i + 5))
                                fi
                                /sbin/ip -6 rule add $args $prio
                        done
This page took 0.447657 seconds and 4 git commands to generate.