mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 18:13:13 +01:00
Import tc4shorewall into project
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2611 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
73fa097121
commit
cba33dd4e1
@ -3346,12 +3346,12 @@ setup_tc1() {
|
||||
|
||||
f=$(find_file tcstart)
|
||||
|
||||
if [ -f $f ]; then
|
||||
if [ -x $f ]; then
|
||||
|
||||
run_user_exit tcstart
|
||||
|
||||
save_progress_message "Restoring Traffic Control..."
|
||||
save_command . $(find_file tcstart)
|
||||
save_command $(find_file tcstart)
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -12,6 +12,14 @@ if [ -z "$COMMAND" ]; then
|
||||
|
||||
. $FUNCTIONS
|
||||
|
||||
elif [ "$COMMAND" = restore ]; then
|
||||
cd /etc/shorewall
|
||||
SHOREWALL_DIR=.
|
||||
fi
|
||||
|
||||
if [ -z "$COMMAND" -o "$COMMAND" = restore ]; then
|
||||
run_tc() { tc $@; }
|
||||
fatal_error() { echo " ERROR: $@" >&2; exit 2; }
|
||||
TMP_DIR=
|
||||
TMP_DIR=$(mktempdir)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user