make sure we really don't have a tty when installing rules. This prevents
a flush command from asking a question (you can't see): If there is no tty associated with the process, this is implied. MFC after: 1 day
This commit is contained in:
parent
d14e51c95c
commit
978243bd80
@ -82,7 +82,7 @@ get_yes_no() {
|
||||
}
|
||||
|
||||
restore_rules() {
|
||||
nohup sh ${firewall_script} >/dev/null 2>&1
|
||||
nohup sh ${firewall_script} </dev/null >/dev/null 2>&1
|
||||
rm ${TMPFILE}
|
||||
exit 1
|
||||
}
|
||||
@ -129,10 +129,10 @@ the ssh/telnet connection being used.
|
||||
|
||||
if [ ${rules_edit} = yes ]; then
|
||||
nohup sh ${firewall_script} ${firewall_type}.new \
|
||||
> ${TMPFILE} 2>&1
|
||||
< /dev/null > ${TMPFILE} 2>&1
|
||||
else
|
||||
nohup sh ${firewall_script}.new \
|
||||
> ${TMPFILE} 2>&1
|
||||
< /dev/null > ${TMPFILE} 2>&1
|
||||
fi
|
||||
sleep 2;
|
||||
get_yes_no "Would you like to see the resulting new rules"
|
||||
|
Loading…
x
Reference in New Issue
Block a user