diff options
author | jmz <jmz@FreeBSD.org> | 2005-12-24 04:06:25 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 2005-12-24 04:06:25 +0800 |
commit | a183904d5cee5d4edfed5c18063772ee6b0148e6 (patch) | |
tree | 57e344dd59b7390d22ea95f16c1f55ef92b6ded5 /comms | |
parent | f359bd52e4c6182157779dedd93a4b713f175b84 (diff) | |
download | freebsd-ports-gnome-a183904d5cee5d4edfed5c18063772ee6b0148e6.tar.gz freebsd-ports-gnome-a183904d5cee5d4edfed5c18063772ee6b0148e6.tar.zst freebsd-ports-gnome-a183904d5cee5d4edfed5c18063772ee6b0148e6.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'}; |