Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2001 20:37:06 -0500
From:      "Donald J . Maddox" <dmaddox@sc.rr.com>
To:        John Wilson <jmw@nyc.rr.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: XF86 oddities.
Message-ID:  <20010101203706.A47246@cae88-102-101.sc.rr.com>
In-Reply-To: <Pine.BSF.4.21.0101012008230.210-100000@>; from jmw@nyc.rr.com on Mon, Jan 01, 2001 at 08:12:51PM -0500
References:  <Pine.BSF.4.21.0101012008230.210-100000@>

next in thread | previous in thread | raw e-mail | index | archive | help
Probably not missing anything...  Most likely your ISP simply doesn't
send a hostname.  Here's a kludge that should get you a resolvable
hostname, though.  Put this in /etc/dhclient-exit-hooks:

case $reason in
REBOOT | RENEW | REBIND | BOUND)
	hostname `host $new_ip_address | awk '{ print $5 }'`
	case $? in
	0)
		$LOGGER "New hostname: $(hostname)"
		;;
	*)
		$LOGGER "Failed to set new hostname!"
		;;
	esac
	;;
*)
	;;
esac

On Mon, Jan 01, 2001 at 08:12:51PM -0500, John Wilson wrote:
> 
> Good day all,
> 
> I recently installed XFree86 3.3.6 on my 4.2-STABLE laptop and am
> experiencing something odd.  It seems that after an X session, the machine
> appears to "lockup"- not allowing any text input from the keyboard for a
> few seconds.  This only happens when I've started X, then exited back
> out into console mode.  It happens randomly.
> 
> If I reboot and don't run X, I don't see it happen.  Odd.
> 
> Finally, just a quick question.  In the 'rc.conf' man page, it states that
> if you configure your network interface via DHCP, the hostname string in
> rc.conf should be set to "" and dhclient will insert the correct name
> itself.  However, this fails to work as I end up with a blank
> hostname.  Am I missing something here?
> 
> Thanks for the help,
> John Wilson
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


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




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