On Sun, May 28, 2000 at 10:46:34PM -0400, erik wrote:
> Hi,
> Right now my ethernet is automatically started at boot time. I did a
> ps ax and noticed pump was running. Right now it uses 'pump -i eth0'
> but I would like it to run 'pump -i eth0 --lookup-hostname'. When I
> was using 6.1, I never had to set my hostname, nut in 6.2 I had to set
> it manually to get my email to work properly. Does anyone know how to
> make this happen automatically?
If you look in ifup-post you will find where that gets done.
It does not get done by pump. It happens on boot if the device is not
lo and the link type is not ppp or slip and if NEEDHOSTNAME is true.
If you look in network-functions, you will see that NEEDHOSTNAME gets
set, in the need_hostname function, to true if the current hostname
is set to (none), localhost, or localhost@localdomain.
I've got a RedHat 6.2 system that has that working now. If it's
not working for you, you need to find out which of those conditions is
not being met.
One difference between RedHat 6.1 and RedHat 6.2 is in that
ifup-post file. In RedHat 6.2, one of the conditions is "$2" = "boot".
This test was not in that file on RedHat 6.1. If your ethernet is
not being configured at boot (like if it's PCMCIA), you're screwed
because they broke it for deferred devices (devices that get configured
after boot).
Quite frankly, the test for "$2" = "boot" is stupid. If one of
the boot devices successfully configured, you shouldn't have NEEDHOSTNAME
set (because you would have set the hostname earlier) when you configure
devices after boot. If you have NEEDHOSTNAME set on a device and "boot"
is not set, it still means you never looked up a hostname for any boot
configured devices and still need a hostname. I don't know what they
were thinking on that but it hoses up laptops with pcmcia cards and
wanting to get their hostname after configuring with dhcp. It's a stupid
bug and I would just take out that test in that file and see if that
fixes your problem. If it does, file a bug report with RedHat, because
they broke it.
> Thanks,
> -e-
>
> --
> erik <[EMAIL PROTECTED]>
>
> "Can I pour you a beer, Mr. Peterson?"
> "A little early isn't it, Woody?"
> "For a beer?"
> "No, for stupid questions."
> --A scene from the hit show "Cheers"
Mike
--
Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
(The Mad Wizard) | (770) 331-2437 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.