From cc4556ea628af6319b52e40375694deb480b748c Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Fri, 23 Dec 2005 20:06:25 +0000 Subject: Check if stdin is a TTY, otherwise bail out as per BATCH mode. Submitted by: Daniel O'Connor --- comms/mgetty+sendfax/files/mgettycfg.in | 1 + comms/mgetty+sendfax/pkg-install | 1 + 2 files changed, 2 insertions(+) (limited to 'comms') 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'}; -- cgit