<p dir="ltr">This is not really exposed nicely. There is a C library sd-network, which will give you the events you want, but it is not yet public (you can still copy it out of git of course). </p>
<div class="gmail_quote">On Nov 12, 2015 05:24, "J Decker" <<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Should I have not said specifically Arch linux?<br>
Is it something that can't be done?<br>
It is something that should be so obvious it doesn't merit an answer?<br>
<br>
<br>
<br>
On Fri, Nov 6, 2015 at 1:56 PM, J Decker <<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>> wrote:<br>
> I have Arch Linux setup as my router.<br>
> It's on a connection that can change the IP that I'm given, when that<br>
> happens I need to rerun firewall rules and rebuild my ipv6 tunnel.<br>
> How do I run some script or something when the address changes (or<br>
> when it's initially given in the case of boot?)<br>
><br>
> Also there seems to be no way to specify default ipv6 route for next<br>
> hop... ie 'ip -6 route replace ::/0 dev he-ipv6'<br>
> It's been a couple months I've been limping along so I forget; I<br>
> vaguely remember that this should have been setup in the configuration<br>
> scripts; but it didn't work unless I did it this way. The iniital<br>
> method I think was 'add' instead of 'replace' which no longer works (I<br>
> think something changed in the kernel that affected that; but I don't<br>
> know).<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>