aboutsummaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2005-12-24 04:06:25 +0800
committerJean-Marc Zucconi <jmz@FreeBSD.org>2005-12-24 04:06:25 +0800
commitcc4556ea628af6319b52e40375694deb480b748c (patch)
tree849c45ff1a59813f1bf3cccff83596ff81f09e8b /comms
parentbbd9b5838a95d81e176ae462faffd1a5732ba28c (diff)
downloadfreebsd-ports-gnome-cc4556ea628af6319b52e40375694deb480b748c.tar.gz
freebsd-ports-gnome-cc4556ea628af6319b52e40375694deb480b748c.tar.zst
freebsd-ports-gnome-cc4556ea628af6319b52e40375694deb480b748c.zip
Check if stdin is a TTY, otherwise bail out as per BATCH mode.
Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>
Diffstat (limited to 'comms')
-rw-r--r--comms/mgetty+sendfax/files/mgettycfg.in1
-rw-r--r--comms/mgetty+sendfax/pkg-install1
2 files changed, 2 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/files/mgettycfg.in b/comms/mgetty+sendfax/files/mgettycfg.in
index 37ac6dec0b36..8e0d3bcf3830 100644
--- a/comms/mgetty+sendfax/files/mgettycfg.in
+++ b/comms/mgetty+sendfax/files/mgettycfg.in
@@ -2,6 +2,7 @@
exit 0 if $ARGV[1] ne "POST-INSTALL";
exit 0 if $ENV{'BATCH'};
+exit 0 if ! -t;
print STDERR "\n\n\n =========== mgetty+sendfax configuration ===========\n\n";
$prefix = $ENV{'PKG_PREFIX'};
diff --git a/comms/mgetty+sendfax/pkg-install b/comms/mgetty+sendfax/pkg-install
index 37ac6dec0b36..8e0d3bcf3830 100644
--- a/comms/mgetty+sendfax/pkg-install
+++ b/comms/mgetty+sendfax/pkg-install
@@ -2,6 +2,7 @@
exit 0 if $ARGV[1] ne "POST-INSTALL";
exit 0 if $ENV{'BATCH'};
+exit 0 if ! -t;
print STDERR "\n\n\n =========== mgetty+sendfax configuration ===========\n\n";
$prefix = $ENV{'PKG_PREFIX'};