[Midnightbsd-cvs] src: root/etc: Add custom hosts file.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri May 23 16:05:48 EDT 2008


Log Message:
-----------
Add custom hosts file.

Modify rc.conf so that it tries to initialize various network interfaces using dhcp.

Modified Files:
--------------
    src/nrelease/root/etc:
        rc.conf (r1.2 -> r1.3)

Added Files:
-----------
    src/nrelease/root/etc:
        hosts (r1.1)

-------------- next part --------------
--- /dev/null
+++ nrelease/root/etc/hosts
@@ -0,0 +1,32 @@
+# $MidnightBSD: src/nrelease/root/etc/hosts,v 1.1 2008/05/23 20:05:48 laffer1 Exp $
+# $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $
+#
+# Host Database
+#
+# This file should contain the addresses and aliases for local hosts that
+# share this file.  Replace 'my.domain' below with the domainname of your
+# machine.
+#
+# In the presence of the domain name service or NIS, this file may
+# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
+#
+#
+::1			localhost localhost.my.domain
+127.0.0.1		localhost localhost.my.domain MidnightBSD.LiveCD MidnightBSD
+#
+# Imaginary network.
+#10.0.0.2		myname.my.domain myname
+#10.0.0.3		myfriend.my.domain myfriend
+#
+# According to RFC 1918, 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.  Do not try to invent your own network
+# numbers but instead get one from your network provider (if any) or
+# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
+#
Index: rc.conf
===================================================================
RCS file: /home/cvs/src/nrelease/root/etc/rc.conf,v
retrieving revision 1.2
retrieving revision 1.3
diff -L nrelease/root/etc/rc.conf -L nrelease/root/etc/rc.conf -u -r1.2 -r1.3
--- nrelease/root/etc/rc.conf
+++ nrelease/root/etc/rc.conf
@@ -1,14 +1,23 @@
-# $DragonFly: src/nrelease/root/etc/rc.conf,v 1.2 2007/01/12 06:56:24 corecode Exp $
-# rc.conf for CDRom boot.
-#
-# NOTE!  This rc.conf is designed for a CD boot.  When starting fresh on
-# your HD you can simply remove most or all of the lines below and then
-# add features as appropriate.
+# $MidnightBSD$
+# rc.conf for CD boot.
 #
+
+# Network settings
+background_dhclient="YES"
+hostname="MidnightBSD.LiveCD"
+
+NIC="de em ixgb txp vx bfe bge dc fxp lge nge pcn re rl sf sis sk ste ti tl tx vge vr wb xl cs ed ex ep fe ie lnc sn xe an awi wi ath gem"
+
+for i in $NIC; do
+	eval ifconfig_${i}0="DHCP"
+	eval ifconfig_${i}1="DHCP"
+done
+
 kern_securelevel_enable="NO"
 nfs_reserved_port_only="YES"
 sshd_enable="NO"
-usbd_enable="NO"
+moused_enable="YES"
+usbd_enable="YES"
 syslogd_enable="NO"
 ntpd_enable="NO"
 nfs_client_enable="YES"


More information about the Midnightbsd-cvs mailing list