mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Fix copy & paste error.
Submitted by: Reinier Bezuidenhout <rbezuide@oskar.nanoteq.co.za>
This commit is contained in:
parent
1835ec2219
commit
d54d292d52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=42796
5 changed files with 6 additions and 85 deletions
|
@ -1,70 +0,0 @@
|
||||||
#!/bin/sh -
|
|
||||||
# $Id: rc.network.pl,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $
|
|
||||||
network_pass1() {
|
|
||||||
echo -n 'Wstepna konfiguracja sieci:'
|
|
||||||
# Set the host name if it is not already set
|
|
||||||
if [ -z "`hostname -s`" ] ; then
|
|
||||||
hostname $hostname
|
|
||||||
echo ' hostname'
|
|
||||||
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}
|
|
||||||
fi
|
|
||||||
# Do the primary ifconfig if specified
|
|
||||||
eval ifconfig_args=\$ifconfig_${ifn}
|
|
||||||
if [ -n "${ifconfig_args}" ] ; then
|
|
||||||
ifconfig ${ifn} ${ifconfig_args}
|
|
||||||
fi
|
|
||||||
# Check to see if aliases need to be added
|
|
||||||
alias=0
|
|
||||||
while :
|
|
||||||
do
|
|
||||||
eval ifconfig_args=\$ifconfig_${ifn}_alias${alias}
|
|
||||||
if [ -n "${ifconfig_args}" ]; then
|
|
||||||
ifconfig ${ifn} ${ifconfig_args} alias
|
|
||||||
alias=`expr ${alias} + 1`
|
|
||||||
else
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
ifconfig ${ifn}
|
|
||||||
done
|
|
||||||
# Configure routing
|
|
||||||
if [ "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.
|
|
||||||
if [ "x${static_routes}" != "x" ]; then
|
|
||||||
for i in ${static_routes}; do
|
|
||||||
eval route_args=\$route_${i}
|
|
||||||
route add ${route_args}
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
echo -n 'Dodatkowe opcje routingu:'
|
|
||||||
if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then
|
|
||||||
echo -n ' tcp_extensions=NO'
|
|
||||||
sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1
|
|
||||||
sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if [ "X$gateway_enable" = X"YES" ]; then
|
|
||||||
echo -n ' IP_gateway=YES'
|
|
||||||
sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
if [ "X$arpproxy_all" = X"YES" ]; then
|
|
||||||
echo -n ' wlaczam ARP_PROXY_ALL: '
|
|
||||||
sysctl -w net.link.ether.inet.proxyall=1 2>&1
|
|
||||||
fi
|
|
||||||
echo '.'
|
|
||||||
network_pass1_done=YES # Let future generations know we made it.
|
|
||||||
}
|
|
||||||
|
|
||||||
network_pass2() {
|
|
||||||
network_pass2_done=YES
|
|
||||||
}
|
|
||||||
|
|
||||||
network_pass3() {
|
|
||||||
network_pass3_done=YES
|
|
||||||
}
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: PICOBSD,v 1.6 1998/11/14 20:10:23 abial Exp $
|
# $Id: PICOBSD,v 1.7 1999/01/14 23:20:09 abial Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
machine "i386"
|
machine "i386"
|
||||||
|
@ -61,7 +61,7 @@ device wcd0 #IDE CD-ROM
|
||||||
controller atkbdc0 at isa? port IO_KBD tty
|
controller atkbdc0 at isa? port IO_KBD tty
|
||||||
device atkbd0 at isa? tty irq 1
|
device atkbd0 at isa? tty irq 1
|
||||||
device vga0 at isa? port ? conflicts
|
device vga0 at isa? port ? conflicts
|
||||||
device sc0 at isa? tty irq 1
|
device sc0 at isa? tty
|
||||||
|
|
||||||
device npx0 at isa? port IO_NPX irq 13
|
device npx0 at isa? port IO_NPX irq 13
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: PICOBSD,v 1.5 1998/11/14 20:10:23 abial Exp $
|
# $Id: PICOBSD,v 1.6 1999/01/14 23:21:58 abial Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
machine "i386"
|
machine "i386"
|
||||||
|
@ -60,7 +60,7 @@ device wcd0 #IDE CD-ROM
|
||||||
controller atkbdc0 at isa? port IO_KBD tty
|
controller atkbdc0 at isa? port IO_KBD tty
|
||||||
device atkbd0 at isa? tty irq 1
|
device atkbd0 at isa? tty irq 1
|
||||||
device vga0 at isa? port ? conflicts
|
device vga0 at isa? port ? conflicts
|
||||||
device sc0 at isa? tty irq 1
|
device sc0 at isa? tty
|
||||||
|
|
||||||
device npx0 at isa? port IO_NPX irq 13
|
device npx0 at isa? port IO_NPX irq 13
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $Id: PICOBSD,v 1.9 1998/11/03 22:01:06 des Exp $
|
# $Id: PICOBSD,v 1.10 1999/01/14 23:22:51 abial Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
machine "i386"
|
machine "i386"
|
||||||
|
@ -61,7 +61,7 @@ disk fd0 at fdc0 drive 0
|
||||||
controller atkbdc0 at isa? port IO_KBD tty
|
controller atkbdc0 at isa? port IO_KBD tty
|
||||||
device atkbd0 at isa? tty irq 1
|
device atkbd0 at isa? tty irq 1
|
||||||
device vga0 at isa? port ? conflicts
|
device vga0 at isa? port ? conflicts
|
||||||
device sc0 at isa? tty irq 1
|
device sc0 at isa? tty
|
||||||
|
|
||||||
device npx0 at isa? port IO_NPX irq 13
|
device npx0 at isa? port IO_NPX irq 13
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
# $Id: Makefile,v 1.1.1.1 1998/08/27 17:38:45 abial Exp $
|
|
||||||
#
|
|
||||||
PROG=dumpnlist
|
|
||||||
NOMAN=yes
|
|
||||||
.PATH: ${.CURDIR}/../../..
|
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue