config/13.per_ip_routing: add a setup_per_ip_routing() function
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Feb 2010 15:34:59 +0000 (16:34 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Feb 2010 09:38:49 +0000 (10:38 +0100)
commit624e8878851b4957cc7c02e922ec86926d6927ee
tree83c2201af27f1fcc710762818495844ef3fb997f
parent1493436b6b24eb05a23b7a339071ad85f70de8f4
config/13.per_ip_routing: add a setup_per_ip_routing() function

This combines the logic into a shell function which can be used by the
"takeip" and "updateip" hooks.

We check the return values of the "ip" commands now
instead of ignoring them.

We now create a setup_script.sh similar to the release_script.sh
which makes it easier to analyze problems.

metze
config/events.d/13.per_ip_routing