SVN: rc-scripts/trunk/lib/functions.network
arekm
arekm at pld-linux.org
Wed Apr 18 08:29:12 CEST 2012
Author: arekm
Date: Wed Apr 18 08:29:11 2012
New Revision: 12553
Modified:
rc-scripts/trunk/lib/functions.network
Log:
Start ip rules prio from 10000 and increment (not decrement) by 5.
Modified: rc-scripts/trunk/lib/functions.network
==============================================================================
--- rc-scripts/trunk/lib/functions.network (original)
+++ rc-scripts/trunk/lib/functions.network Wed Apr 18 08:29:11 2012
@@ -473,13 +473,13 @@
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 @@
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
More information about the pld-cvs-commit
mailing list