diff options
author | dwhite <dwhite@FreeBSD.org> | 1999-08-22 21:45:24 +0000 |
---|---|---|
committer | dwhite <dwhite@FreeBSD.org> | 1999-08-22 21:45:24 +0000 |
commit | 9cda01decb3256ad946657e0fc9a298213d4eaa8 (patch) | |
tree | 0de7c224091527fca4800e72ffaf6f9673980bfd /release/picobsd/net/lang | |
parent | 2bbfd73cc7441111e9e49645afb397eb04b1af45 (diff) | |
download | FreeBSD-src-9cda01decb3256ad946657e0fc9a298213d4eaa8.zip FreeBSD-src-9cda01decb3256ad946657e0fc9a298213d4eaa8.tar.gz |
Major PicoBSD update by luigi with some debugging help from myself.
. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel
THIS IS BROKEN ON CURRENT. I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.
Submitted by: luigi
Diffstat (limited to 'release/picobsd/net/lang')
-rw-r--r-- | release/picobsd/net/lang/mfs.rc.en | 33 | ||||
-rw-r--r-- | release/picobsd/net/lang/mfs.rc.pl | 35 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.conf.en | 25 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.conf.pl | 25 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.en | 60 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.network.en | 79 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.network.pl | 80 | ||||
-rw-r--r-- | release/picobsd/net/lang/rc.pl | 59 | ||||
-rw-r--r-- | release/picobsd/net/lang/resolv.conf.en | 3 | ||||
-rw-r--r-- | release/picobsd/net/lang/resolv.conf.pl | 3 |
10 files changed, 0 insertions, 402 deletions
diff --git a/release/picobsd/net/lang/mfs.rc.en b/release/picobsd/net/lang/mfs.rc.en deleted file mode 100644 index c13166e..0000000 --- a/release/picobsd/net/lang/mfs.rc.en +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -# $Id: mfs.rc.en,v 1.3 1998/08/10 19:17:10 abial Exp $ -# System startup script run by init on autoboot -# or after single-user. - -stty status '^T' - -trap : 2 -trap : 3 # shouldn't be needed - -HOME=/; export HOME -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin -export PATH - -trap "echo 'Reboot interrupted'; exit 1" 3 - -### Special setup for one floppy PICOBSD ### -echo "" -echo "-------------------------------------------" -echo " Please wait. The system is coming up..." -echo "-------------------------------------------" -echo "" -echo "Reading /etc from startup floppy..." -mount -o rdonly /dev/fd0a /start_floppy -cd /start_floppy/etc -cp -Rp . /etc/ -cd /etc -pwd_mkdb -p ./master.passwd -umount /start_floppy -echo "Ok. (Now you may remove floppy if you like)" -echo "" -. rc -exit 0 diff --git a/release/picobsd/net/lang/mfs.rc.pl b/release/picobsd/net/lang/mfs.rc.pl deleted file mode 100644 index f5e0a53..0000000 --- a/release/picobsd/net/lang/mfs.rc.pl +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# $Id: mfs.rc.pl,v 1.3 1998/08/10 19:17:10 abial Exp $ -# System startup script run by init on autoboot -# or after single-user. - -stty status '^T' - -trap : 2 -trap : 3 # shouldn't be needed - -HOME=/; export HOME -PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin -export PATH - -trap "echo 'Reboot zostal przerwany'; exit 1" 3 - -############################################ -### Special setup for one floppy PICOBSD ### -############################################ -echo "" -echo "-----------------------------------------------" -echo " Prosze czekac. Trwa uruchamianie systemu..." -echo "-----------------------------------------------" -echo "" -echo "Wczytuje konfiguracje /etc z dyskietki..." -mount -o rdonly /dev/fd0a /start_floppy -cd /start_floppy/etc -cp -Rp . /etc/ -cd /etc -pwd_mkdb -p ./master.passwd -umount /dev/fd0a -echo "Ok. (Jesli chcesz, mozesz juz wyjac dyskietke)" -echo "" -. rc -exit 0 diff --git a/release/picobsd/net/lang/rc.conf.en b/release/picobsd/net/lang/rc.conf.en deleted file mode 100644 index 03d2bc6..0000000 --- a/release/picobsd/net/lang/rc.conf.en +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# $Id: rc.conf.en,v 1.1.1.1 1998/07/14 07:30:50 abial Exp $ -swapfile="NO" # Set to name of swapfile if aux swapfile desired. -### Network configuration sub-section ###################### -### Basic network options: ### -hostname="pico.mydomain.edu" # Set this! -firewall="NO" # firewall type (see /etc/rc.firewall) or NO -tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO). -network_interfaces="lo0" # List of network interfaces (lo0 is loopback). -ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. -#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. -### Network daemons options: ### -inetd_enable="YES" # Run the network daemon dispatcher (or NO) -inetd_flags="" # Optional flags to inetd -snmpd_enable="YES" # Run the SNMP daemon (or NO) -snmpd_flags="-C -c /etc/snmpd.conf" # Optional flags to snmpd -### Network routing options: ### -defaultrouter="NO" # Set to default gateway (or NO). -static_routes="" # Set to static route list (or leave empty). -gateway_enable="NO" # Set to YES if this host will be a gateway. -arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL. -### Allow local configuration override at the very end here ## -if [ -f /etc/rc.conf.local ]; then - . /etc/rc.conf.local -fi diff --git a/release/picobsd/net/lang/rc.conf.pl b/release/picobsd/net/lang/rc.conf.pl deleted file mode 100644 index 61c4066..0000000 --- a/release/picobsd/net/lang/rc.conf.pl +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# $Id: rc.conf.pl,v 1.1.1.1 1998/07/14 07:30:50 abial Exp $ -swapfile="NO" # Set to name of swapfile if aux swapfile desired. -### Network configuration sub-section ###################### -### Basic network options: ### -hostname="pico.mydomain.org.pl" # Set this! -firewall="NO" # firewall type (see /etc/rc.firewall) or NO -tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO). -network_interfaces="lo0" # List of network interfaces (lo0 is loopback). -ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. -#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. -### Network daemons options: ### -inetd_enable="YES" # Run the network daemon dispatcher (or NO) -inetd_flags="" # Optional flags to inetd -snmpd_enable="YES" # Run the SNMP daemon (or NO) -snmpd_flags="-C -c /etc/snmpd.conf" # Optional flags to snmpd -### Network routing options: ### -defaultrouter="NO" # Set to default gateway (or NO). -static_routes="" # Set to static route list (or leave empty). -gateway_enable="NO" # Set to YES if this host will be a gateway. -arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL. -### Allow local configuration override at the very end here ## -if [ -f /etc/rc.conf.local ]; then - . /etc/rc.conf.local -fi diff --git a/release/picobsd/net/lang/rc.en b/release/picobsd/net/lang/rc.en deleted file mode 100644 index 295a882..0000000 --- a/release/picobsd/net/lang/rc.en +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/sh -# $Id: rc.en,v 1.4 1999/01/12 14:09:21 asami Exp $ -############################################ -### Special setup for one floppy PICOBSD ### -### THIS IS NOT THE NORMAL /etc/rc !!!!! ### -############################################ -mount -a -t nonfs -if [ -f /etc/rc.conf ]; then - . /etc/rc.conf -fi -rm -f /var/run/* -if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then - echo "Adding $swapfile as additional swap." - vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b -fi -# configure serial devices -if [ -f /etc/rc.serial ]; then - . /etc/rc.serial -fi -# start up the initial network configuration. -if [ -f /etc/rc.network ]; then - . /etc/rc.network - network_pass1 -fi -mount -a -t nfs -chmod 666 /dev/tty[pqrsPQRS]* -# clean up left-over files -(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; }) -if [ -n "$network_pass1_done" ]; then - network_pass2 -fi -if [ -n "$network_pass2_done" ]; then - network_pass3 -fi -if [ "X${inetd_enable}" = X"YES" ]; then - echo "Starting inetd."; inetd ${inetd_flags} -fi - -dev_mkdb - -echo '' -if [ "x$swapfile" = "xNO" ]; then - echo "WARNING: no swap partition!" - echo "Don't run too many programs at the same time..." -fi -echo '' -echo '' -echo '+----------- PicoBSD @VER@ (NET) ---------------+' -echo '| |' -echo '| Log in as "root" (password "setup"). |' -echo '| |' -echo '| This version of PicoBSD is fully under |' -echo '| BSD license. For more details see |' -echo '| http://www.freebsd.org/~picobsd, or contact |' -echo '| the author. |' -echo '| |' -echo '| abial@freebsd.org |' -echo '| |' -echo '+----------------------------------------------+' -exit 0 diff --git a/release/picobsd/net/lang/rc.network.en b/release/picobsd/net/lang/rc.network.en deleted file mode 100644 index b6ffb66..0000000 --- a/release/picobsd/net/lang/rc.network.en +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh - -# $Id: rc.network.en,v 1.1.1.1 1998/07/14 07:30:50 abial Exp $ -network_pass1() { - echo -n 'Doing initial network setup:' - # 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 - # Load the filters if required - if [ -n "$firewall_enable" -a -f /etc/rc.firewall -a \ - "x$firewall_enable" = "xYES" ] ; then - . /etc/rc.firewall - echo "Firewall rules loaded." - else - echo "Warning: kernel has firewall functionality, but firewall rules weren't loaded." - echo " All ip services are ENABLED by default." - fi - # 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 'Additional routing options:' - 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 ' turning on 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 -} diff --git a/release/picobsd/net/lang/rc.network.pl b/release/picobsd/net/lang/rc.network.pl deleted file mode 100644 index 9c0fab6..0000000 --- a/release/picobsd/net/lang/rc.network.pl +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh - -# $Id: rc.network.pl,v 1.1.1.1 1998/07/14 07:30:50 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 - # Load the filters if required - if [ -n "$firewall_enable" -a -f /etc/rc.firewall -a \ - "x$firewall_enable" = "xYES" ] ; then - . /etc/rc.firewall - echo "Zaladowano reguly filtrujace do firewalla." - else - echo "UWAGA: system posiada wbudowany modul firewalla, ale zadne reguly" - echo " filtrujace nie zostaly zaladowane." - echo " Wszystkie rodzaje ruchu IP sa dozwolone." - fi - # 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 -} diff --git a/release/picobsd/net/lang/rc.pl b/release/picobsd/net/lang/rc.pl deleted file mode 100644 index d19f336..0000000 --- a/release/picobsd/net/lang/rc.pl +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh -# $Id: rc.pl,v 1.3 1998/11/01 20:19:23 abial Exp $ -############################################ -### Special setup for one floppy PICOBSD ### -### THIS IS NOT THE NORMAL /etc/rc !!!!! ### -############################################ -mount -a -t nonfs -if [ -f /etc/rc.conf ]; then - . /etc/rc.conf -fi -rm -f /var/run/* -if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then - echo "Dodaje $swapfile jako dodatkowy swap." - vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b -fi -# configure serial devices -if [ -f /etc/rc.serial ]; then - . /etc/rc.serial -fi -# start up the initial network configuration. -if [ -f /etc/rc.network ]; then - . /etc/rc.network - network_pass1 -fi -mount -a -t nfs -# clean up left-over files -(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; }) -if [ -n "$network_pass1_done" ]; then - network_pass2 -fi -if [ -n "$network_pass2_done" ]; then - network_pass3 -fi -if [ "X${inetd_enable}" = X"YES" ]; then - echo "Uruchamiam inetd."; inetd ${inetd_flags} -fi - -dev_mkdb - -echo '' -if [ "x$swapfile" = "xNO" ]; then - echo "UWAGA: brak swapu!" - echo "Nie uruchamiaj zbyt wielu programow na raz..." -fi -echo '' -echo '' -echo '+------------ PicoBSD @VER@ (NET) --------------+' -echo '| |' -echo '| Zaloguj sie jako "root" (haslo "setup"). |' -echo '| |' -echo '| Ta wersja PicoBSD w pelni podlega |' -echo '| licencji BSD. Po wiecej szczegolow zajrzyj |' -echo '| na http://www.freebsd.org/~picobsd, lub |' -echo '| skontaktuj sie z autorem. |' -echo '| |' -echo '| abial@freebsd.org |' -echo '| |' -echo '+----------------------------------------------+' -exit 0 diff --git a/release/picobsd/net/lang/resolv.conf.en b/release/picobsd/net/lang/resolv.conf.en deleted file mode 100644 index 1a7acfd..0000000 --- a/release/picobsd/net/lang/resolv.conf.en +++ /dev/null @@ -1,3 +0,0 @@ -# $Id: resolv.conf.en,v 1.1.1.1 1998/07/14 07:30:51 abial Exp $ -domain mydomain.edu -nameserver 192.33.4.12 diff --git a/release/picobsd/net/lang/resolv.conf.pl b/release/picobsd/net/lang/resolv.conf.pl deleted file mode 100644 index b2cb6499..0000000 --- a/release/picobsd/net/lang/resolv.conf.pl +++ /dev/null @@ -1,3 +0,0 @@ -# $Id: resolv.conf.pl,v 1.1.1.1 1998/07/14 07:30:51 abial Exp $ -domain mydomain.org.pl -nameserver 148.81.16.51 |