summaryrefslogtreecommitdiffstats
path: root/release/bininst
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-11 08:33:04 +0000
committerjkh <jkh@FreeBSD.org>1994-11-11 08:33:04 +0000
commit53656a24f8037cf1d550da00dc2c97d07cfd4eae (patch)
treedcbb6ff77462727d8e10cdaa632478fbe3413850 /release/bininst
parent59151de82190b81835f61b48bfda74557705adb3 (diff)
downloadFreeBSD-src-53656a24f8037cf1d550da00dc2c97d07cfd4eae.zip
FreeBSD-src-53656a24f8037cf1d550da00dc2c97d07cfd4eae.tar.gz
Add cu (and cu slip dialog) so that poor SLIP users can dial their modems
before initiating a slip transfer.
Diffstat (limited to 'release/bininst')
-rwxr-xr-xrelease/bininst13
1 files changed, 11 insertions, 2 deletions
diff --git a/release/bininst b/release/bininst
index 154f76d..ba1a12b 100755
--- a/release/bininst
+++ b/release/bininst
@@ -13,7 +13,7 @@
# your name on top after doing something trivial like reindenting it, just
# to make it look like you wrote it!).
#
-# $Id: bininst,v 1.25 1994/11/10 23:43:25 jkh Exp $
+# $Id: bininst,v 1.26 1994/11/11 07:33:50 jkh Exp $
# Some useful constants.
PATH=/usr/bin:/usr/sbin:/bin:/sbin:/stand
@@ -78,7 +78,7 @@ handle_rval() {
# A simple user-confirmation dialog.
confirm() {
- dialog --title "Please Confirm" --msgbox "$*" 6 72
+ dialog --title "User Confirmation" --msgbox "$*" 8 72
}
# A simple message box dialog.
@@ -316,6 +316,15 @@ setup_network_slip()
if ! network_dialog "What speed is the serial interface"; then return 1; fi
serial_speed=$answer
clear="--clear"
+
+ if dialog $clear --title "Dial" --yesno "Do you need to dial the phone or otherwise talk to the modem?"; then
+ touch -f /var/log/aculog >& /dev/null
+ chmod 666 /var/log/aculog >& /dev/null
+ confirm "You may now dialog with your modem and set up the slip connection.\nBe sure to disable DTR sensitivity (usually with AT&D0) or the modem may\nhang up when you exit 'cu'. Use ~. to exit cu and continue."
+ dialog --clear
+ cu -l $serial_interface -s $serial_speed
+ dialog --clear
+ fi
}
setup_network_plip()
OpenPOWER on IntegriCloud