diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2005-12-24 04:06:25 +0800 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2005-12-24 04:06:25 +0800 |
commit | cc4556ea628af6319b52e40375694deb480b748c (patch) | |
tree | 849c45ff1a59813f1bf3cccff83596ff81f09e8b /comms | |
parent | bbd9b5838a95d81e176ae462faffd1a5732ba28c (diff) | |
download | freebsd-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.in | 1 | ||||
-rw-r--r-- | comms/mgetty+sendfax/pkg-install | 1 |
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'}; |