From: Matthew F. <mf...@ci...> - 2002-10-16 15:14:14
|
Sorry the documentation is so poor. Most people (including myself) consider it a pain to muck with the initrd (more specifically to edit linuxrc). if you look in /sbin/net-start you'll see the following files are used: /etc/tux/config/gateway - this is default route /etc/tux/config/dns - dns server (I think only one) /etc/tux/config/eth[012...] - ip netmask|dhcp To allow customization without manually editing the linuxrc there are several files within /etc/tux/init/ that you can put in commands you want executed root@mfranz-ppro:/trinux/initrd/working# grep "tux/init" linuxrc chmod a+x /etc/tux/init/first 2> /dev/null if [ -x /etc/tux/init/first ] . /etc/tux/init/first chmod a+x /etc/tux/init/prenet 2> /dev/null if [ -x /etc/tux/init/prenet ] . /etc/tux/init/prenet if [ -x /etc/tux/init/postnet ] chmod a+x /etc/tux/init/postnet 2> /dev/null . /etc/tux/init/postnet chmod a+x /etc/tux/init/prepkg 2> /dev/null if [ -x /etc/tux/init/prepkg ] . /etc/tux/init/prepkg chmod a+x /etc/tux/init/last 2> /dev/null if [ -x /etc/tux/init/last ] . /etc/tux/init/last I usually add routes or other stuff like firewall rules to /etc/tux/init/last or sometimes interfaces. I don't manually change the initrd, but I do use the other hacks. - mdf > I know that 5sep02.iso is early in development so > some changes may be undocumented. > > My question relates to how best config networking. > Right now I am doing it manually by adding the necessary > components with ifconfig; route add; editing /etc/resolv.conf > and /etc/hosts. I know there is a setup in the tux/config > area for this purpose already. So which is better? Should > I edit the files in initrd if I know they will be static or > do something with tux/config? > > Just curious, what is the reasoning for having the tux/ > config setup in the distrib as opposed to editing initrd directly? User > friendliness? > |