diff options
author | jmz <jmz@FreeBSD.org> | 1998-07-12 23:29:38 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1998-07-12 23:29:38 +0000 |
commit | 92a79e9638e469bd26a8a3fb06c0e207c330cca0 (patch) | |
tree | be2366140298985fa16cf6342031abfabee19698 /comms | |
parent | c6d5796a68b829f9df4f38999cb1d7a2c32fab6c (diff) | |
download | FreeBSD-ports-92a79e9638e469bd26a8a3fb06c0e207c330cca0.zip FreeBSD-ports-92a79e9638e469bd26a8a3fb06c0e207c330cca0.tar.gz |
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).
Diffstat (limited to 'comms')
-rw-r--r-- | comms/mgetty+sendfax/files/mgettycfg.in | 2 | ||||
-rw-r--r-- | comms/mgetty+sendfax/pkg-deinstall | 19 | ||||
-rw-r--r-- | comms/mgetty+sendfax/pkg-install | 2 |
3 files changed, 21 insertions, 2 deletions
diff --git a/comms/mgetty+sendfax/files/mgettycfg.in b/comms/mgetty+sendfax/files/mgettycfg.in index c1dfb61..15ab65c 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 0000000..d358470 --- /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 c1dfb61..15ab65c 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 |