This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
#!/bin/sh -
|
|
|
|
#
|
1995-03-30 09:39:51 +00:00
|
|
|
# $Id: rc.i386,v 1.1 1995/03/30 06:26:19 rgrimes Exp $
|
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
# Do i386 specific processing
|
|
|
|
#
|
|
|
|
|
|
|
|
echo -n 'enabling FreeBSD/386 options:'
|
|
|
|
|
|
|
|
# Start the SCO binary emulation if requested.
|
|
|
|
if [ "X${ibcs2}" = X"YES" ]; then
|
|
|
|
echo -n ' ibcs2'; ibcs2
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "X${xtend}" != X"NO" -a -x /usr/libexec/xtend ]; then
|
|
|
|
echo -n ' xtend'; /usr/libexec/xtend
|
|
|
|
fi
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
####### Syscons section ########
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# don't change these, they're modified below
|
|
|
|
kbdadjust=NO
|
|
|
|
vidadjust=NO
|
|
|
|
|
1995-03-30 09:39:51 +00:00
|
|
|
[ "X${keymap}" != X"NO" -o "X${keyrate}" != X"NO" \
|
|
|
|
-o "X${keychange}" != X"NO" ] && kbdadjust=YES
|
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
[ "X${scrnmap}" != X"NO" -o "X${font8x16}" != X"NO" -o \
|
|
|
|
"X${font8x14}" != X"NO" -o "X${font8x8}" != X"NO" -o \
|
|
|
|
"X${blanktime}" != X"NO" ] && vidadjust=YES
|
|
|
|
|
1995-03-30 09:39:51 +00:00
|
|
|
[ "X${kbdadjust}" != X"NO" -o "X${vidadjust}" != X"NO" -o \
|
|
|
|
"X${saver}" != X"NO" ] && { echo; echo "configuring syscons:" }
|
|
|
|
|
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
[ "X${kbdadjust}" != X"NO" ] && echo -n ' [kbdcontrol:'
|
|
|
|
|
|
|
|
# keymap
|
|
|
|
if [ "X${keymap}" != X"NO" ]; then
|
|
|
|
echo -n ' keymap'; kbdcontrol -l ${keymap}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# keyrate
|
|
|
|
if [ "X${keyrate}" != X"NO" ]; then
|
|
|
|
echo -n ' keyrate'; kbdcontrol -r ${keyrate}
|
|
|
|
fi
|
|
|
|
|
1995-03-30 09:39:51 +00:00
|
|
|
# change function keys
|
|
|
|
if [ "X${keychange}" != X"NO" ]; then
|
|
|
|
echo -n " keychange"
|
|
|
|
set - ${keychange}
|
|
|
|
while [ $# -gt 0 ]
|
|
|
|
do
|
|
|
|
kbdcontrol -f "$1" "$2"
|
|
|
|
shift; shift
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.
Comments:
(a) sysconfig is still used to do all configuration. I was not going to
change that out from under you.... a user never need edit netstart
or rc* unless they're being very weird.
(b) rc.maint has been folded back into rc. It is just unworkable as
a separate chunk because of ordering bogosities
(c) netstart does what it says... it starts up enough of the network to
get up, it doesn't start every bloody daemon that might talk to a
socket... netstart ifconfig's the devices and sets up routing if
configured to do so.
(d) nfs disks are mounted immediately after netstart completes
(e) syslog is started as early as possible (right after nfs) so that error
messages can get logged to remote syslog servers properly
(f) named is started (there is an argument that says that named should be
started before syslogd because if you are the dns server for your domain,
you'd like named to resolve remote hosts in syslog.conf, but this is
a minority case and the trivial workarround is to put the syslog host
in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
to catch named errors, which is a MUCH more important and likely occurance)
(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
NIS, NFS, Kerberos and inetd are started
(h) the rest of the generic stuff is done (cron/printer/sendmail)
(i) shared libraries are set
(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
xtend, and all of the syscons stuff
(this is actually started as /etc/rc.`uname -m`
(k) the syscons stuff has gotten a serious cleaning to make it consistent
with rc conventions
(l) rc.local has had the comments about syscons removed (they are not relevant
to this file now) and the full name of the kernel has been restored to
/etc/motd
Submitted by: pts
1995-03-30 06:26:19 +00:00
|
|
|
[ "X${kbdadjust}" != X"NO" ] && echo ']'
|
|
|
|
|
|
|
|
|
|
|
|
[ "X${vidadjust}" != X"NO" ] && echo -n ' [vidcontrol:'
|
|
|
|
|
|
|
|
# screen mapping
|
|
|
|
if [ "X${scrnmap}" != X"NO" ]; then
|
|
|
|
echo -n ' screen_map'; vidcontrol -l ${scrnmap}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# font 8x16
|
|
|
|
if [ "X${font8x16}" != X"NO" ]; then
|
|
|
|
echo -n ' font8x16'; vidcontrol -f 8x16 ${font8x16}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# font 8x14
|
|
|
|
if [ "X${font8x14}" != X"NO" ]; then
|
|
|
|
echo -n ' font8x14'; vidcontrol -f 8x14 ${font8x14}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# font 8x8
|
|
|
|
if [ "X${font8x8}" != X"NO" ]; then
|
|
|
|
echo -n ' font8x8'; vidcontrol -f 8x8 ${font8x8}
|
|
|
|
fi
|
|
|
|
|
|
|
|
# blank time
|
|
|
|
if [ "X${blanktime}" != X"NO" ]; then
|
|
|
|
echo -n ' blank_time'; vidcontrol -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
|