added /sbin:/usr/sbin to system path to solve an issue with pppd ip-up scripts; now automatic numbering continues giving class priorities after the manual priority given

This commit is contained in:
Costa Tsaousis (ktsaou) 2014-05-04 14:56:05 +03:00
parent 194d318407
commit cb43b72381

@ -24,6 +24,10 @@
# See the file COPYING for details.
#
# make sure sbin is included in the path
# it seems that pppd ip-up.d script need this
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
get_version() {
GIT_REF='$Format:%d,commit-%h$'
local IFS=":(), "
@ -1648,13 +1652,16 @@ class() {
# increase the parent's priority of subclasses
parent_class_prio=$((parent_class_prio + 1))
fi
else
parent_class_prio=$((class_prio + 1))
fi
# remember this prio, in case we need it later
last_class_prio="$class_prio"
[ $class_prio -lt 0 ] && class_prio=0
[ $class_prio -gt 7 ] && class_prio=7
# remember this prio, in case we need it later
last_class_prio="$class_prio"
# if not specified, set the minimum rate
if [ -z "$class_rate" ]
then