summaryrefslogtreecommitdiffstats
path: root/share/examples
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-09-07 07:52:56 +0000
committerjmg <jmg@FreeBSD.org>2003-09-07 07:52:56 +0000
commit8c8be14d552974727252b624b221441d78f9e0aa (patch)
tree1fe26bd81c300258f16b782b59fa313adc0c5d0c /share/examples
parentffc45a6f38ccebcfc3c288c480c7d4b50ce07097 (diff)
downloadFreeBSD-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')
-rwxr-xr-xshare/examples/ipfw/change_rules.sh6
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"
OpenPOWER on IntegriCloud