/etc/sysconfig/network

which is read when you bring up your network (or anything that reads
/etc/sysconfig/network)

-Greg

On 08-Nov-02 Thomas Ribbrock wrote:
> Hi all,
> 
> I'm currently trying to set up my laptop so that I can boot it with
> network settings either for home or for work. I've already figured out that
> I can simply append a variable to the kernel parameters in GRUB which is
> then available for the init scripts, so I can simply use two different GRUB
> entries. I've also set up /etc/hosts, /etc/resolv.conf,
> /etc/sysconfig/network and /etc/sysconfig/network-scripts for both home and
> work. Further, I've added a script to the init scripts, which evaluates said
> variable and sets the correct symlinks to the files I mentioned.
> 
> This works beautifully for IP address, gateway and DNS settings, however,
> for some reason, the HOSTNAME doesn't get set properly (i.e. it stays on the
> "old" value). To me, it looks as if HOSTNAME is set "too early", i.e. before
> my script runs and sets the correct symlinks. This is confirmed by the fact
> that if I boot twice with the same setting, the second time round the
> hostname *is* set correctly (i.e. the symlink is already in place).
> 
> Hence my question: When in the boot process is HOSTNAME set? It must be
> earlier than "S07" (that's the level I added my script at), but I can't seem
> to find it... :-(
> 
> Cheerio,
> 
> Thomas
> -- 
>  http://www.netmeister.org/news/learn2quote.html
>                                        ...'cause only lusers quote
> signatures!
>      Thomas Ribbrock | http://www.ribbrock.org | ICQ#: 15839919
>    "You have to live on the edge of reality - to make your dreams come true!"
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list

----------------------------------
E-Mail: Gregory Hosler <[EMAIL PROTECTED]>
Date: 08-Nov-02
Time: 16:27:52

  If each of us have one object, and we exchange them,
     then each of us still has one object.
  If each of us have one idea,   and we exchange them,
     then each of us now has two ideas.

----------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to