aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/psion.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/psion.in b/etc/psion.in
index 558828f..8985d40 100755
--- a/etc/psion.in
+++ b/etc/psion.in
@@ -11,9 +11,17 @@
[ -f @prefix@/sbin/ncpd ] || exit 0
[ -f @prefix@/sbin/plpnfsd ] || exit 0
+MGETTY_HASPLP=false
+if grep -qs ^/PLP/ /etc/mgetty+sendfax/login.config ; then
+ MGETTY_HASPLP=true
+fi
+
# See how we were called.
case "$1" in
start)
+ if $MGETTY_HASPLP ; then
+ echo "NOT Starting ncpd because mgetty configured for PLP"
+ fi
echo -n "Starting Psion support: "
daemon @prefix@/sbin/ncpd
daemon @prefix@/sbin/plpnfsd