June 5, 2013 by aubreykloppers
Ok, this is very easy, but took me a while to figure out.
Once your interface has a static IP, all you have to do is edit /etc/network/interfaces and add the last line:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
iface lo inet loopback
iface eth0 inet static
that’s it! Now, when your server comes up and the network is active, the script will run. I use this to mount CIFS files (Samba), starting Calibra-server and more…