Clean up /sbin/shorewall TMP_DIR handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@592 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-14 03:24:17 +00:00
parent df034f6141
commit 3e20e24c98

View File

@ -348,13 +348,16 @@ monitor_firewall() # $1 = timeout -- if negative, prompt each time that
timeout=$1
fi
TMP_DIR=/tmp/shorewall-$$
mkdir $TMP_DIR
qt which awk && { haveawk=Yes; determine_zones; } || haveawk=
rm -rf $TMP_DIR
if qt which awk; then
TMP_DIR=/tmp/shorewall-$$
mkdir $TMP_DIR
haveawk=Yes
determine_zones
rm -rf $TMP_DIR
else
haveawk=
fi
while true; do
display_chains