forked from extern/shorewall_code
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:
parent
df034f6141
commit
3e20e24c98
@ -348,13 +348,16 @@ monitor_firewall() # $1 = timeout -- if negative, prompt each time that
|
|||||||
timeout=$1
|
timeout=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TMP_DIR=/tmp/shorewall-$$
|
|
||||||
|
|
||||||
mkdir $TMP_DIR
|
if qt which awk; then
|
||||||
|
TMP_DIR=/tmp/shorewall-$$
|
||||||
qt which awk && { haveawk=Yes; determine_zones; } || haveawk=
|
mkdir $TMP_DIR
|
||||||
|
haveawk=Yes
|
||||||
rm -rf $TMP_DIR
|
determine_zones
|
||||||
|
rm -rf $TMP_DIR
|
||||||
|
else
|
||||||
|
haveawk=
|
||||||
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
display_chains
|
display_chains
|
||||||
|
Loading…
Reference in New Issue
Block a user