[Madlug] Linux routing

Matt Radtke matthew.radtke at gmail.com
Thu Mar 6 09:43:34 CST 2008


> Or if someone has a better idea altogether that works too.  (Adding the
> route statement to rc.local doesn't last after a restart of the network
> service).


Well, I don't purport to know the syntax for the route file you
specified, but what you could do is hack /etc/init.d/network to call a
shell script, say, something like /etc/add-route.sh, when start() is
called.

Then, /etc/add-route.sh could be as simple as:

#!/bin/sh
route add ......

Just my two cents.

-Matt
-- 
Matthew Radtke
matthew.radtke at gmail.com

~ This shell script has been rated 'R' for improper quoting, not
checking error codes, and gratuitous use of cat ~


More information about the Madlug mailing list