While we do support the "O bit" running a script (usually to start a
dhcpv6 client) we have no options for setups which set the "M bit" for,
e.g., static address assignment as in EC2.
Duplicate most of the "O bit" logic to also start a script for the
"M bit" with the one difference: if the "M bit" is set we will not
start the script for the "O bit" as well (RFC 4861, Section 4.2).
Please not that the current implemention has the logic for run
"M script" and "O script" backwards it seems as I was too tired last
night. I'll update this soon. Meanwhile it would be good to know if
the idea and the implementation otherwise is sound.