From 70bef47e5818f970b18cc7768989e0f3a98ab07d Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Sun, 12 Jul 1998 23:29:38 +0000 Subject: Change the default for autobauding from YES to NO. Give the user a chance to backup the config files before deinstalling the port (fixes PR ports/7175). --- comms/mgetty+sendfax/files/mgettycfg.in | 2 +- comms/mgetty+sendfax/pkg-deinstall | 19 +++++++++++++++++++ comms/mgetty+sendfax/pkg-install | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 comms/mgetty+sendfax/pkg-deinstall (limited to 'comms') diff --git a/comms/mgetty+sendfax/files/mgettycfg.in b/comms/mgetty+sendfax/files/mgettycfg.in index c1dfb6106cdf..15ab65c757c7 100644 --- a/comms/mgetty+sendfax/files/mgettycfg.in +++ b/comms/mgetty+sendfax/files/mgettycfg.in @@ -330,7 +330,7 @@ sub inq_m { modem setup command.", $def{'answer-chat-timeout'}); $settings .= " autobauding"; - $def{'autobauding'} = "YES" if !$def{'autobauding'}; + $def{'autobauding'} = "NO" if !$def{'autobauding'}; $def{'autobauding'} = &ask (" - `autobauding' Some modems switch their DTE line speed to the communication line speed after connecting, e.g., after sending `CONNECT 2400', the diff --git a/comms/mgetty+sendfax/pkg-deinstall b/comms/mgetty+sendfax/pkg-deinstall new file mode 100644 index 000000000000..d3584709d239 --- /dev/null +++ b/comms/mgetty+sendfax/pkg-deinstall @@ -0,0 +1,19 @@ +#!/bin/sh + +prefix=/usr/local + +cat << END + +Deinstalling mgetty+sendfax will remove your configuration files (usually +mgetty.config and sendfax.config in $prefix/etc/mgetty+sendfax/). If you +want to reinstall the port later, you must make a backup of those files +now. + +END + +echo -n "do you want to deinstall the package ? [y] " +read answ; if [ "$answ" = "" ]; then answ=y; fi +case $answ in + y*|Y*) exit 0;; + *) exit 1;; +esac diff --git a/comms/mgetty+sendfax/pkg-install b/comms/mgetty+sendfax/pkg-install index c1dfb6106cdf..15ab65c757c7 100644 --- a/comms/mgetty+sendfax/pkg-install +++ b/comms/mgetty+sendfax/pkg-install @@ -330,7 +330,7 @@ sub inq_m { modem setup command.", $def{'answer-chat-timeout'}); $settings .= " autobauding"; - $def{'autobauding'} = "YES" if !$def{'autobauding'}; + $def{'autobauding'} = "NO" if !$def{'autobauding'}; $def{'autobauding'} = &ask (" - `autobauding' Some modems switch their DTE line speed to the communication line speed after connecting, e.g., after sending `CONNECT 2400', the -- cgit v1.2.3