mirror of
https://github.com/firehol/firehol.git
synced 2024-06-30 19:02:21 +00:00
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user