mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-19 17:28:35 +02:00
Retain TC_ENABLED value
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4564 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
375b2007fd
commit
ebe5f00aab
@ -921,7 +921,7 @@ setup_tc1() {
|
|||||||
if [ -n "$TC_SCRIPT" ]; then
|
if [ -n "$TC_SCRIPT" ]; then
|
||||||
save_progress_message "Setting up Traffic Control..."
|
save_progress_message "Setting up Traffic Control..."
|
||||||
append_file $TC_SCRIPT
|
append_file $TC_SCRIPT
|
||||||
elif [ -n "$TC_ENABLED" ]; then
|
elif [ "$TC_ENABLED" = Internal ]; then
|
||||||
strip_file_and_lib_load tcdevices tc
|
strip_file_and_lib_load tcdevices tc
|
||||||
strip_file_and_lib_load tcclasses tc && setup_traffic_shaping
|
strip_file_and_lib_load tcclasses tc && setup_traffic_shaping
|
||||||
fi
|
fi
|
||||||
@ -1014,7 +1014,7 @@ __EOF__
|
|||||||
if [ -n "$TC_SCRIPT" ]; then
|
if [ -n "$TC_SCRIPT" ]; then
|
||||||
save_progress_message "Refreshing Traffic Shaping"
|
save_progress_message "Refreshing Traffic Shaping"
|
||||||
run_user_exit $TC_SCRIPT
|
run_user_exit $TC_SCRIPT
|
||||||
elif [ -n "$TC_ENABLED" ]; then
|
elif [ "$TC_ENABLED" = Internal ]; then
|
||||||
[ -n "$LIB_tc_LOADED" ] && setup_traffic_shaping
|
[ -n "$LIB_tc_LOADED" ] && setup_traffic_shaping
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -5278,7 +5278,7 @@ __EOF__
|
|||||||
# Shorewall auxiliary configuration file created by Shorewall version $VERSION - $(date)
|
# Shorewall auxiliary configuration file created by Shorewall version $VERSION - $(date)
|
||||||
#
|
#
|
||||||
__EOF__
|
__EOF__
|
||||||
for option in VERBOSITY LOGFILE LOGFORMAT IPTABLES PATH SHOREWALL_SHELL SUBSYSLOCK RESTOREFILE; do
|
for option in VERBOSITY LOGFILE LOGFORMAT IPTABLES PATH SHOREWALL_SHELL SUBSYSLOCK RESTOREFILE TC_ENABLED; do
|
||||||
conditionally_add_option $option
|
conditionally_add_option $option
|
||||||
done
|
done
|
||||||
exec 3>&-
|
exec 3>&-
|
||||||
|
@ -1969,12 +1969,12 @@ do_initialize() {
|
|||||||
if [ -n "$TC_ENABLED" ] ; then
|
if [ -n "$TC_ENABLED" ] ; then
|
||||||
case "$TC_ENABLED" in
|
case "$TC_ENABLED" in
|
||||||
[Yy][Ee][Ss])
|
[Yy][Ee][Ss])
|
||||||
TC_ENABLED=
|
TC_ENABLED=Yes
|
||||||
TC_SCRIPT=$(find_file tcstart)
|
TC_SCRIPT=$(find_file tcstart)
|
||||||
[ -f $TC_SCRIPT ] || fatal_error "Unable to find tcstart file"
|
[ -f $TC_SCRIPT ] || fatal_error "Unable to find tcstart file"
|
||||||
;;
|
;;
|
||||||
[Ii][Nn][Tt][Ee][Rr][Nn][Aa][Ll])
|
[Ii][Nn][Tt][Ee][Rr][Nn][Aa][Ll])
|
||||||
TC_ENABLED=Yes
|
TC_ENABLED=Internal
|
||||||
;;
|
;;
|
||||||
[Nn][Oo])
|
[Nn][Oo])
|
||||||
TC_ENABLED=
|
TC_ENABLED=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user