On 04/09/2011 08:00 PM, Nico Kadel-Garcia wrote:
On Sat, Apr 9, 2011 at 10:14 PM, Todd And Margo Chester
<[email protected]> wrote:
On 04/10/2011 12:25 AM, Federico Alves wrote:
Brctl addif br1 eth1

Hi Federico,

Back "in the day" before Virtual Box took care
of the bridge itself,  I use to put this kind of stuff
into /etc/rc.d/rc.local. It is a bash script that
runs at the very end of your boot up.

Just and idea.
-T

p.s. which virtual machine are you using?
Never use rc.local for this. Actually write an init script, based on
those in /etc/init.d/, so that it can be turned *off* gracefully at
reboot time or reset or restarted as needed.

Editing rc.local directly is destabilizing, dangerous, and difficult
to replicate reliably on other systems
Interesting.  Why would you want to stop or restart "Brctl addif br1 eth1"?

And, at least on my system, rc.local is started by S99local
init.d]$ ls -al ../rc5.d/S99local
lrwxrwxrwx 1 root root 11 Nov 17 09:10 ../rc5.d/S99local -> ../rc.local
I can see your point if you wanted to stop or restart things, or reverse them
at shutdown, but if you only want to run them once, S99local (rc.local) is
a good place to put them.  I have done this for many years.  Never once
had a problem.  What am I missing?

-T

  

Reply via email to