*BSD News Article 86847


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!arclight.uoregon.edu!newsfeed.direct.ca!nntp.portal.ca!van-bc!n1van.istar!van.istar!west.istar!ott.istar!istar.net!tor.istar!east.istar!news1.istar.ca!news
From: firesign <firesign@istar.ca>
Newsgroups: istar.discussion,comp.unix.bsd.freebsd.misc
Subject: FreeBSD and ISP (Pt.2) *30k of attachments*
Date: 29 Jan 1997 01:31:20 GMT
Organization: iSTAR Internet Incorporated
Lines: 997
Message-ID: <5cm998$rtl@news.istar.ca>
Reply-To: firesign@istar.ca
NNTP-Posting-Host: ts5-05.tor.istar.ca
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="------------29CB4E7E4E8D"
X-Mailer: Mozilla 3.0 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34082

This is a multi-part message in MIME format.

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

First of all, I'd like to thank everyone who helped me out. I got the "X
windows system" up and running fine now.

But, I still can't connect to my ISP. I've read your emails, read the
FAQs, Handbook, man pages and some books I bought. I've tried your
scripts (most of which were Linux... when I import a script, how the
hell do I execute it ?) with no luck.

I've tried. Most of the stuff was great and fairly well written. But god
knows I've tried. Some of the stuff was less concise and left out steps
in logic that would be obvious to others. Maybe my configuration files
are so far gone now from all the tinkering....

In anycase, this is going to be a longish message so don't flame me.
I've attached all the relavent files (sysconfig, hosts, host.conf,
ppp.conf, ppp.linkup, etc...) in the hope that a wiz/guru/anyone smarter
than me can help me out.

Also, my ISPs ppp dial in screen looks like this:

          User Access Verification

          Username:
          Password:
          ts8.tor>

and the relavent IP addresses are in the files. What I'd really
appreciate is someone looking these files over and letting me know of
inaccuracies, omissions, or plain errors so I can correct them.

I can't think of any easy way to make it up to whoever helps me out, so
let me know how I can help you. I'm a firm believer in karma, so I want
to make sure I have something to contribute too.

Peace, and thanks.

firesign

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="host.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="host.conf"

# $Id: host.conf,v 1.2 1993/11/07 01:02:57 wollman Exp $
# Default is to use the nameserver first
/etc/hosts
# If that doesn't work, then try the /etc/hosts file
bind
# If you have YP/NIS configured, uncomment the next line
# nis

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="hosts"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hosts"

# $Id: hosts,v 1.5 1995/04/09 09:54:39 rgrimes Exp $
#
# Host Database
# This file should contain the addresses and aliases
# for local hosts that share this file.
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/host.conf for the resolution order.
#
#
127.0.0.1		localhost	 
0			firesigne	firesign
# Imaginary network.
#10.0.0.2		myname.my.domain myname
#10.0.0.3		myfriend.my.domain myfriend
#
# According to RFC 1597, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#	10.0.0.0	-   10.255.255.255
#	172.16.0.0	-   172.31.255.255
#	192.168.0.0	-   192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  PLEASE PLEASE PLEASE do not try
# to invent your own network numbers but instead get one from your
# network provider (if any) or from the Internet Registry (ftp to
# rs.internic.net, directory `/templates').
#

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="mykernel"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="mykernel"

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	$Id: GENERIC,v 1.46.2.6 1995/10/25 17:29:51 jkh Exp $
#

machine		"i386"


cpu		"I586_CPU"
ident		GENERIC
maxusers	10

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		"CHILD_MAX=128"
options		"OPEN_MAX=128"


options		"MAXCONS=16"

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

config		kernel	root on sd0 

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
# disk		fd1	at fdc0 drive 1
# tape		ft0	at fdc0 drive 2

# controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
# disk		wd0	at wdc0 drive 0
# disk		wd1	at wdc0 drive 1

# controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
# disk		wd2	at wdc1 drive 0
# disk		wd3	at wdc1 drive 1

#options         ATAPI   #Enable ATAPI support for IDE bus
#device          wcd0    #IDE CD-ROM

controller	ncr0
controller	ahc0

# controller	bt0	at isa? port "IO_BT0" bio irq ? vector btintr
# controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
# controller	ahc1	at isa? bio irq ? vector ahcintr
# controller	ahb0	at isa? bio irq ? vector ahbintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
# controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
# controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
# controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
# controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

# device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
# device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
# device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr

# controller	matcd0	at isa? port 0x230 bio

# device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
# device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
options		"PCVT_FREEBSD=210"	# pcvt running on FreeBSD 2.1
options		XSERVER			# include code for XFree86

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
# device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
# device		lpt1	at isa? port? tty
# device		lpt2	at isa? port? tty
# device		mse0	at isa? port 0x23c tty irq 5 vector mseintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0
# device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
# device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
# device ep0 at isa? port 0x300 net irq 10 vector epintr
# device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
# device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
# device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
# device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
# device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
# device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
# pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="netstart"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="netstart"

#!/bin/sh -
#
#	$Id: netstart,v 1.32.4.3 1995/08/25 07:21:46 davidg Exp $
#	From: @(#)netstart	5.9 (Berkeley) 3/30/91

# Note that almost all the user-configurable behavior is no longer in
# this file, but rather in /etc/sysconfig.  Please check this file
# first before contemplating any changes here.  If you do need to change
# this file for some reason, we would like to know about it.

# If there is a global system configuration file, suck it in.
if [ -f /etc/sysconfig ]; then
	. /etc/sysconfig
fi

# Set the host name if it is not already set
if [ -z "`hostname -s`" ] ; then
	FreeBSD $hostname
fi

# Set the domainname if we're using NIS
# if [ -n "$defaultdomainname" -a "x$defaultdomainname" != "xNO" ] ; then
#	domainname $defaultdomainname
# fi

#
# XXX This is known to cause an error if /usr is nfs mounted since it
# will not be avaliable until after the network is up :-(.  Once the
# relocation of sysctl to /sbin is done that problem will go away.
#
if [ -n "$tcp_extensions" -a "x$tcp_extensions" = "xNO" ] ; then
	sysctl -w net.inet.tcp.rfc1323=0
	sysctl -w net.inet.tcp.rfc1644=0
fi

# Set up all the network interfaces, calling startup scripts if needed
for ifn in ${network_interfaces}; do
	if [ -e /etc/start_if.${ifn} ]; then
		. /etc/start_if.${ifn} ${ifn}
	fi
	eval ifconfig_args=\$ifconfig_${ifn}
	ifconfig ${ifn} ${ifconfig_args}
	ifconfig ${ifn}
done

if [ -n "$defaultrouter" -a "x$defaultrouter" != "xNO" ] ; then
	static_routes="default ${static_routes}"
	route_default="default ${defaultrouter}"
fi

# Set up any static routes.  This should be done before router discovery.
for i in ${static_routes}; do
	eval route_args=\$route_${i}
	route add ${route_args}
done

if [ "x$gateway" != "xNO" ]; then
	echo 'configuring host as a gateway.'
	sysctl -w net.inet.ip.forwarding=1
fi

if [ "x$gated" != "xNO" -o "x$routedflags" != "xNO" ] ; then
	echo -n starting routing daemons:

	# $gated and $routedflags are imported from /etc/sysconfig.
	# If $gated == YES, gated is used; otherwise routed.
	# If $routedflags == NO, routed isn't run.

	if [ "X${gated}" = X"YES" -a -r /etc/gated.conf ]; then
		echo -n	' gated';	/usr/local/sbin/gated $gatedflags
	elif [ "X${routedflags}" != X"NO" ]; then
		echo -n ' routed';	routed $routedflags
	fi

	echo '.'
fi

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="ppp.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp.conf"

default:
  set device /dev/cuaa2
  set speed 14400 
  disable lqr
  deny lqr
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 20 CONNECT"
provider:
  set phone 3632815
  set login "TIMEOUT 10 name:--name: firesign word: ******* tor> ppp default"
  set timeout 120
  set ifaddr 0 0

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="ppp.linkup"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ppp.linkup"

0:
  add 0 0 HISADDR

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="rc"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="rc"

#!/bin/sh
#	$Id: rc,v 1.66.4.7 1995/10/30 08:30:31 davidg Exp $
#	From: @(#)rc	5.27 (Berkeley) 6/5/91

# System startup script run by init on autoboot
# or after single-user.
# Output and error are redirected to console by init,
# and the console is the controlling terminal.

# Note that almost all the user-configurable behavior is no longer in
# this file, but rather in /etc/sysconfig.  Please check this file
# first before contemplating any changes here.

stty status '^T'

# Set shell to ignore SIGINT (2), but not children;
# shell catches SIGQUIT (3) and returns to single user after fsck.
trap : 2
trap : 3	# shouldn't be needed

HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr:/usr/X11R6/bin
export PATH

swapon -a

if [ $1x = autobootx ]
then
	echo Automatic reboot in progress...
	fsck -p
	case $? in
	0)
		;;
	2)
		exit 1
		;;
	4)
		reboot
		echo "reboot failed... help!"
		exit 1
		;;
	8)
		echo "Automatic file system check failed... help!"
		exit 1
		;;
	12)
		echo "Reboot interrupted"
		exit 1
		;;
	130)
		# interrupt before catcher installed
		exit 1
		;;
	*)
		echo "Unknown error in reboot"
		exit 1
		;;
	esac
else
	echo Skipping disk checks ...
fi

trap "echo 'Reboot interrupted'; exit 1" 3

# root must be read/write both for NFS diskless and for VFS LKMs before
# proceeding any further.
mount -u -o rw /
if [ $? != 0 ]; then
	echo "Filesystem mount failed, startup aborted"
	exit 1
fi

umount -a >/dev/null 2>&1

mount -a -t nonfs
if [ $? != 0 ]; then
	echo "Filesystem mount failed, startup aborted"
	exit 1
fi
mount -t cd9660 -o ro /dev/cd0a /cdrom
if [$? != 0 ]; then
	echo "CdRom failed to mount, startup aborted"
	exit 1
fi

# If the machine runs wall CMOS clock (compatible with MSDOS),
# activate following line by creating empty file /etc/wall_cmos_clock
# If this file not exist, following line does nothing (assumed
# the machine runs UTC CMOS clock). See adjkerntz(8) for details.
adjkerntz -i

# If there is a global system configuration file, suck it in.
if [ -f /etc/sysconfig ]; then
	. /etc/sysconfig
fi

# configure serial devices
if [ -f /etc/rc.serial ]; then
	. /etc/rc.serial
fi

# start up the network
if [ -f /etc/netstart ]; then
	sh /etc/netstart
fi

mount -a -t nfs >/dev/null 2>&1

# Whack the pty perms back into shape.
chmod 666 /dev/tty[pqrs]*

# clean up left-over files
rm -f /etc/nologin
rm -f /var/spool/lock/*
rm -rf /var/spool/uucp/.Temp/*
rm -f /dev/log
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })

echo clearing /tmp

# prune quickly with one rm, then use find to clean up /tmp/[lq]*
# (not needed with mfs /tmp, but doesn't hurt there...)
(cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
    find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)

# enable dumpdev so that savecore can see it
if [ "X${dumpdev}" != X"NO" ]; then
	dumpon ${dumpdev}
fi

# /var/crash should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved.
if [ "X${savecore}" = X"YES" -a -d /var/crash ]; then
	echo -n checking for core dump...
	savecore /var/crash
fi

# snapshot any kernel -c changes back to disk
echo 'recording kernel -c changes'
/sbin/dset -q

# Check the quotas
if [ "X${check_quotas}" = X"YES" ]; then
	echo 'checking quotas:'
	quotacheck -a
	echo ' done.'
	quotaon -a
fi

# start system logging and name service (named needs to start before syslogd
# if you don't have a /etc/resolv.conf)
#
echo -n starting system daemons:

echo ' syslogd.';			syslogd

echo -n starting network daemons:

# $namedflags is imported from /etc/sysconfig
if [ "X${namedflags}" != "XNO" ]; then
	echo -n ' named';		named $namedflags
fi

# $ntpdate and $xntpdflags are imported from /etc/sysconfig.
# If $ntpdate != NO, run ntpdate $ntpdate to set the date correctly.
# If $xntpdflags != NO, start xntpd.
if [ "X${ntpdate}" != X"NO" -o "X${xntpdflags}" != X"NO" ]; then
	if [ "X${tickadjflags}" != X"NO" ]; then
		echo -n ' tickadj';	tickadj ${tickadjflags--Aq}
	fi

	if [ "X${ntpdate}" != X"NO" ]; then
		echo -n ' ntpdate';	ntpdate ${ntpdate} >/dev/null 2>&1
	fi

	if [ "X${xntpdflags}" != X"NO" ]; then
		echo -n ' xntpd';	xntpd ${xntpdflags}
	fi
fi

# $timedflags is imported from /etc/sysconfig;
# if $timedflags == NO, timed isn't run.
if [ "X${timedflags}" != X"NO" ]; then
	echo -n ' timed'; timed $timedflags
fi

# Portmapper should always be run, to provide RPC services for inetd.
if [ -x /usr/sbin/portmap ]; then
	echo -n ' portmap';		portmap
fi

# Start ypserv if we're an NIS server.
# Run yppasswdd only on the NIS master server
if [ "X${nis_serverflags}" != X"NO" ]; then
	echo -n ' ypserv'; ypserv ${nis_serverflags}

	if [ "X${yppasswddflags}" != X"NO" ]; then
		echo -n ' yppasswdd'; yppasswdd ${yppasswddflags}
	fi
fi

# Start ypbind if we're an NIS client
if [ "X${nis_clientflags}" != X"NO" ]; then
	echo -n ' ypbind'; ypbind ${nis_clientflags}
	if [ "X${nis_ypsetflags}" != X"NO" ]; then
		echo -n ' ypset'; ypset ${nis_ypsetflags}
	fi
fi

# $rwhod is imported from /etc/sysconfig;
# if $rwhod is set to YES, rwhod is run.
if [ "X${rwhod}" = X"YES" ]; then
	echo -n ' rwhod';	rwhod
fi

if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then
	echo -n ' mountd'
	if [ "X${pcnfsd}" = X"YES" ]; then
		mountd -n
	else
		mountd
	fi
	echo -n ' nfsd';		nfsd -u -t 4
fi

if [ "X${nfs_client}" = X"YES" ]; then
	echo -n ' nfsiod';		nfsiod -n 4
fi

if [ "X${amdflags}" != X"NO" ]; then
	echo -n ' amd';			amd ${amdflags}
fi

# These should go elsewhere but netstart is too early and I don't
# want to touch rc.local, so...
if [ "X${pcnfsd}" = X"YES" -a -x /usr/local/libexec/rpc.pcnfsd ]; then
	echo -n ' rpc.pcnfsd'; /usr/local/libexec/rpc.pcnfsd &
fi

if [ "X${apache_httpd}" = X"YES" -a -x /usr/local/sbin/httpd ]; then
	echo -n ' apache httpd'; /usr/local/sbin/httpd &
fi

# Kerberos runs ONLY on the Kerberos server machine
if [ "X${kerberos_server}" = X"YES" ]; then
	echo -n ' kerberos';	kerberos >> /var/log/kerberos.log &
	echo -n ' kadmind'; \
		(sleep 20; /usr/sbin/kadmind -n >/dev/null 2>&1 &) &
fi

echo -n ' inetd';		inetd
echo '.'

# build ps databases
kvm_mkdb 
dev_mkdb

# check the password temp/lock file
if [ -f /etc/ptmp ]
then
	logger -s -p auth.err \
	"password file may be incorrect -- /etc/ptmp exists"
fi

# Recover vi editor files.
virecovery=`echo /var/tmp/vi.recover/recover.*`
if [ "$virecovery" != '/var/tmp/vi.recover/recover.*' ]; then
	echo 'Recovering vi editor sessions'
	for i in $virecovery; do
		sendmail -t < $i
	done
fi

if [ "X${accounting}" = X"YES" -a -d /var/account ]; then
	echo 'turning on accounting';	accton /var/account/acct
fi

# Now start up miscellaneous daemons that don't belong anywhere else
#
echo -n standard daemons:
echo -n ' cron';		cron
echo -n ' printer';		lpd

# $sendmail_flags is imported from /etc/sysconfig;
# if $sendmail_flags is something other than NO, sendmail is run.
if [ "X${sendmail_flags}" != X"NO" -a -r /etc/sendmail.cf ]; then
	echo -n ' sendmail';		sendmail ${sendmail_flags} 
fi

echo '.'

# Make shared lib searching a little faster.  Leave /usr/lib first if you
# add your own entries or you may come to grief.
if [ -x /sbin/ldconfig ]; then
	_LDC=/usr/lib
	if [ -d /usr/X11R6/lib ]; then _LDC="${_LDC} /usr/X11R6/lib" ; fi
	if [ -d /usr/X386/lib ]; then _LDC="${_LDC} /usr/X386/lib" ; fi
	if [ -d /usr/local/lib ]; then _LDC="${_LDC} /usr/local/lib" ; fi
	if [ -d /usr/gnu/lib ]; then _LDC="${_LDC} /usr/gnu/lib" ; fi
	echo 'setting ldconfig path:' ${_LDC}
	ldconfig ${_LDC}
fi

# configure implementation specific stuff
arch=`uname -m`
if [ -f /etc/rc.${arch} ]; then
	. /etc/rc.${arch}
fi

# Do traditional (but rather obsolete) rc.local file if it exists.
[ -f /etc/rc.local ] && sh /etc/rc.local

date
exit 0

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="rc.i386"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="rc.i386"

#!/bin/sh -
#
#	$Id: rc.i386,v 1.9.4.1 1995/07/27 14:07:03 rgrimes Exp $
#	Do i386 specific processing
#

echo -n 'enabling FreeBSD/i386 options:'

# Start the SCO binary emulation if requested.
if [ "X${ibcs2}" = X"YES" ]; then
	echo -n ' ';		ibcs2
fi

if [ "X${xtend}" != X"NO" -a -x /usr/libexec/xtend ]; then
 	echo -n ' xtend';	/usr/libexec/xtend
fi

##########################################################################
####### Syscons section						  ########
##########################################################################

# stdin must be redirected because it might be for a serial console
kbddev=/dev/ttyv0
viddev=/dev/ttyv0

# don't change these, they're modified below
kbdadjust=NO
vidadjust=NO

[ "X${keymap}" != X"NO" -o "X${keyrate}" != X"NO" \
	-o "X${keychange}" != X"NO" ] && kbdadjust=YES
[ "X${scrnmap}" != X"NO" -o "X${font8x16}" != X"NO" -o \
	"X${font8x14}" != X"NO" -o "X${font8x8}" != X"NO" -o \
	"X${blanktime}" != X"NO" -o "X${cursor}" != X"NO" ] && vidadjust=YES

[ "X${kbdadjust}" != X"NO" -o "X${vidadjust}" != X"NO" -o \
	"X${saver}" != X"NO" ] && { echo; echo "configuring syscons:"; }

[ "X${kbdadjust}" != X"NO" ] && echo -n ' [kbdcontrol:'

# keymap
if [ "X${keymap}" != X"NO" ]; then
	echo -n ' keymap';	kbdcontrol <${kbddev} -l ${keymap}
fi

# keyrate
if [ "X${keyrate}" != X"NO" ]; then
	echo -n ' keyrate';	kbdcontrol <${kbddev} -r ${keyrate}
fi

# change function keys
if [ "X${keychange}" != X"NO" ]; then
	echo -n " keychange"
	set - ${keychange}
	while [ $# -gt 0 ]
	do
		kbdcontrol <${kbddev} -f "$1" "$2"
		shift; shift
	done
fi

[ "X${kbdadjust}" != X"NO" ] && echo ']'


[ "X${vidadjust}" != X"NO" ] && echo -n ' [vidcontrol:'

# cursor type
if [ "X${cursor}" != X"NO" ]; then
	echo -n ' cursor';	vidcontrol <${viddev} -c ${cursor}
fi

# screen mapping
if [ "X${scrnmap}" != X"NO" ]; then
	echo -n ' screen_map';	vidcontrol <${viddev} -l ${scrnmap}
fi

# font 8x16
if [ "X${font8x16}" != X"NO" ]; then
	echo -n ' font8x16';	vidcontrol <${viddev} -f 8x16 ${font8x16}
fi

# font 8x14
if [ "X${font8x14}" != X"NO" ]; then
	echo -n ' font8x14';	vidcontrol <${viddev} -f 8x14 ${font8x14}
fi

# font 8x8
if [ "X${font8x8}" != X"NO" ]; then
	echo -n ' font8x8';	vidcontrol <${viddev} -f 8x8 ${font8x8}
fi

# blank time
if [ "X${blanktime}" != X"NO" ]; then
	echo -n ' blank_time';	vidcontrol <${viddev} -t ${blanktime}
fi

[ "X${vidadjust}" != X"NO" ] && echo ']'

# screen saver
if [ "X${saver}" != X"NO" ] ; then
	echo -n ' screensaver: '
	modstat | grep _saver || modload -u -o /tmp/saver_mod -e \
				 saver_init -q /lkm/${saver}_saver_mod.o
fi

echo '.'

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="rc.local"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="rc.local"

#
# site-specific startup actions, daemons
#
#	$Id: rc.local,v 1.19 1995/03/30 06:34:46 rgrimes Exp $
#

T=/tmp/_motd
rm -f $T
uname -v | sed -e 's,^\([^#]*\) #\(.*199[0-9]\).*/\([^\]*\) $,\1 (\3) #\2,' > $T
echo "" >> $T
sed '1,/^$/d' < /etc/motd >> $T
cp $T /etc/motd
chmod 644 /etc/motd
rm -f $T
_HOST=`hostname`

echo -n 'starting local daemons:'

# put your local stuff here

echo '.'

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="resolv.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="resolv.conf"

nameserver 198.53.144.2
nameserver 198.53.144.3

--------------29CB4E7E4E8D
Content-Type: text/plain; charset=us-ascii; name="sysconfig"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="sysconfig"

#!/bin/sh
#

# This is sysconfig - a file full of useful variables that you can set 
# to change the default startup behavior of your system.
#
#	$Id: sysconfig,v 1.14.4.5 1995/09/19 12:09:03 jkh Exp $

######################### Start Of Syscons Section #######################

# Choose keyboard map from /usr/share/syscons/keymaps/* or NO if default.
keymap=NO

# Set keyboard rate to: slow, normal, fast or NO if default.
keyrate="normal"

# Change function keys default values (or no change if NO)
# Syntax: "<funkey_number> <new_value> [<funkey_number> <new_value>]..."
keychange=NO

# Desired cursor type {normal|blink|destructive}, NO if no change
cursor=NO

# Choose screen map from /usr/share/syscons/scrnmaps/* (or NO for none)
scrnmap=NO

# Choose font 8x16 from /usr/share/syscons/fonts/* (or NO for default)
font8x16=NO

# Choose font 8x14 from /usr/share/syscons/fonts/* (or NO for default)
font8x14=NO

# Choose font 8x8 from /usr/share/syscons/fonts/* (or NO for default)
font8x8=YES

# Set blank time (in seconds) or "off" to turn it off (or NO for default)
blanktime=NO

# Set to screen saver desired: blank, green, snake, star (or NO for none)
saver="snake"

# General russian setup for example:
# (koi8-r keyboard with cp866 screen font mapped to koi8-r)
#
# keymap=ru.koi8-r
# keyrate=fast
# keychange="61 "
# cursor=destructive
# scrnmap=koi8-r2cp866
# font8x16=cp866b-8x16
# font8x14=cp866-8x14
# font8x8=cp866-8x8
# blanktime=600
# saver=snake

######################### End Of Syscons Section #######################

######################### Start Of Netconfig Section #######################

# Set to the name of your host - this is pretty important!
hostname=localhost

# Set to the NIS domainname of your host, or NO if none
# defaultdomainname=NO

#
# Some broken implementations can't handle the RFC 1323 and RFC 1644
# TCP options.  If TCP connections randomly hang, try disabling this,
# and bug the vendor of the losing equipment.
#
tcp_extensions=YES

#
# Set to the list of network devices on this host.  You must have an
# ifconfig_${network_interface} line for each interface listed here.
# for example:
#
#	network_interfaces="ed0 sl0 lo0"
#	ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00"
#	ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00"
#
network_interfaces="tun0"
ifconfig_tun0="inet localhost 0.0.0.0 netmask 0xffffff00"

#
# Set to the list of route add lines for this host.  You must have a
# route_${static_routes} line for each static route listed here.
#
# static_routes="multicast loopback"
# route_multicast="224.0.0.0 -netmask 0xf0000000 -interface ${hostname}"
# route_loopback="${hostname} localhost"

# Set to the host you'd like set as your default router, or NO for none.
defaultrouter=NO

# These are the flags you'd like to start the routing daemon with
routedflags="-s"

# timed flags, or NO if you don't want to start the time daemon
timedflags=NO

# xntpd flags, or NO if you don't want to start the xntpd daemon
xntpdflags="NO"

# this is inoperative unless xntpd is enabled; NO to disable
tickadjflags="-Aq"

# Set to the site you'd like to syncronize your clock from (gatekeeper.dec.com,
# for example) or NO for no such site.
ntpdate="NO"

# Set to YES if you want to run rwhod
rwhod=NO

# Default sendmail flags.  -bd is pretty mandatory, -q<n>m sets the queue scan
# time in minutes.  If set to NO, don't start sendmail at all.
# sendmail_flags="-bd -q30m"
sendmail_flags="-bd"

# Set to appropriate flags if you want to use AMD
amdflags="NO"

# Set to YES if this machine will be an NFS client
nfs_client=NO

# Set to YES if this machine will be an NFS server
nfs_server=NO

# Set to appropriate flags if you want to start NIS for a client
nis_clientflags="NO"

# Set to host to ypset to if you need to do that
nis_ypsetflags="NO"

# Set to appropriate flags if you want to start NIS for a server
nis_serverflags="NO"

# Set to appropriate flags for yppasswdd, if you wish to run it.
# Typical flags might be "-m /var/yp/master.passwd -s -f"
yppasswddflags="NO"

# Set to appropriate flags for named, if you have a full-time
# connection to the Internet.
# For most hosts, flags should be "-b /etc/namedb/named.boot"
namedflags="NO"

# Set to YES if you run PC-NFSD (see /usr/ports/net/pcnfsd) for
# sharing filesystems with DOS/Windows PCs.
pcnfsd=NO

# Set to YES if you have the Apache WEB server (see /usr/ports/net/apache)
# installed and want to run it at system startup time (this is better than
# running it from inetd if you're running a dedicated WWW server).
apache_httpd=NO

# Set to YES if you want to run the X-10 power controller daemon
xtend=NO

# Set to the name of the device for kernel crashdumps, or `off' to
# disable any statically configured dumpdev, or NO for no change.
# The device should normally be one of the swap devices specified
# in /etc/fstab.
dumpdev=NO

# Set to YES if you want kernel crashdumps to be saved for debugging
savecore=NO

# Set to YES if you want to run Kerberos authentication
kerberos_server=NO

# If you want this host to be a gateway, set to YES.
gateway=NO

# Set to YES if you want to run gated
gated=NO

# Set to YES if you wish to check quotas.  NOTE:  For now this probably
# doesn't work and should be left disabled.
check_quotas=NO

# Set to YES to turn on accounting.  NOTE: For now this probably
# doesn't work and should be left disabled.
accounting=NO

######################### End Of Netconfig Section #######################

######################### Start Of Misc Section #######################

# Set to YES if you want ibcs2 (SCO) emulation loaded at startup
ibcs2=NO

--------------29CB4E7E4E8D--