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:
teastep 2005-08-31 21:31:23 +00:00
parent 73fa097121
commit cba33dd4e1
2 changed files with 10 additions and 2 deletions

View File

@ -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
}

View File

@ -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