[Novalug] where to put commands to be executed at boot time

Mackenzie Morgan macoafi@gmail.com
Sun Apr 12 14:45:53 EDT 2009


On Sunday 12 April 2009 12:43:48 pm Nino Pereira wrote:
> Aaron,
> 
> > You'd want the full stanza:
> > 
> > auto eth0 # start eth0 automatically, if this is left out you can
> > still use ifup/ifdown by hand
> > iface eth0 inet static # tell the system that eth0 is a static IP, you
> > can also use "inet dhcp" here
> >   address xx.xx.xx.xx # your IP
> >   netmask xx.xx.xx.xx
> >   gateway xx.xx.xx.xx # default gw
> > 
> 
> Thank you, this works.
> 
> I have no idea, though, why the commands in the file
> /etc/network/interfaces differ from the ones that you
> use by hand. I thought that the various executables in
> /etc simply contain the same commands, albeit without
> the 'sudo', that you use yourself.

Because it's a configuration file, not an init script.,

-- 
Mackenzie Morgan
http://ubuntulinuxtipstricks.blogspot.com
apt-get moo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20090412/99182616/attachment.asc>


More information about the Novalug mailing list