diff options
author | jmg <jmg@FreeBSD.org> | 2003-09-07 07:52:56 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2003-09-07 07:52:56 +0000 |
commit | 8c8be14d552974727252b624b221441d78f9e0aa (patch) | |
tree | 1fe26bd81c300258f16b782b59fa313adc0c5d0c /share/examples/ipfw | |
parent | ffc45a6f38ccebcfc3c288c480c7d4b50ce07097 (diff) | |
download | FreeBSD-src-8c8be14d552974727252b624b221441d78f9e0aa.zip FreeBSD-src-8c8be14d552974727252b624b221441d78f9e0aa.tar.gz |
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
Diffstat (limited to 'share/examples/ipfw')
-rwxr-xr-x | share/examples/ipfw/change_rules.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/examples/ipfw/change_rules.sh b/share/examples/ipfw/change_rules.sh index 6ff163d..be7f764 100755 --- a/share/examples/ipfw/change_rules.sh +++ b/share/examples/ipfw/change_rules.sh @@ -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" |