<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 28 July 2015 at 18:11, Abdur Rehman <span dir="ltr"><<a href="mailto:abdur_rehman@mentor.com" target="_blank">abdur_rehman@mentor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":l5" class="a3s" style="overflow:hidden">+python () {<br>
+ if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):<br>
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")<br>
+}</div></blockquote></div><br>Isn't this what the update-rcd logic does already:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"> # Check that this class isn't being inhibited (generally, by</div><div class="gmail_extra"> # systemd.bbclass) before doing any work.</div><div class="gmail_extra"> if bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d) or \</div><div class="gmail_extra"> not d.getVar("INHIBIT_UPDATERCD_BBCLASS", True):</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div></div>