Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 1998 15:53:46 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        stable@FreeBSD.ORG
Subject:   proposed minimum change to rc.conf
Message-ID:  <199803161453.PAA20197@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
One way (perhaps not the only one) to tell a diskless machine is
that hostname is set by the BOOTP stuff before /etc/rc starts.  As
it is now, I can put most machine-dependent stuff in /etc/rc.local,
but /etc/rc.conf now overrides the hostname and makes it harder to
preserve the identity of the system.

I think the following patch can solve the problem with no harmful side
effects. 

Opinions ? And in case, could this go into -current or -stable ?

	cheers
	luigi

info# diff -ubwr rc.conf rc.conf.diskless
--- rc.conf.orig     Thu Mar 12 13:34:45 1998
+++ rc.conf    Mon Mar 16 12:28:10 1998
@@ -25,7 +25,10 @@
 ##############################################################
 
 ### Basic network options: ###
+if [ "`hostname`" = "" ]
+then
 hostname="myname.mydomain"   # Set this!
+fi
 nisdomainname="NO"             # Set to NIS domain if using NIS (or NO).
 firewall_enable="NO"           # Set to YES to enable firewall functionality
 firewall_type="UNKNOWN"                # Firewall type (see /etc/rc.firewall)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803161453.PAA20197>