update-rc.d: don't do anything if systemd.bbclass is inherited
authorRoss Burton <ross.burton@intel.com>
Fri, 8 Feb 2013 22:43:16 +0000 (22:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Feb 2013 14:46:10 +0000 (14:46 +0000)
commit2a36335b4bdf8d8fc893db9a4de7f137b1a928e0
tree2901cd039c8945bc8ff8f032cfefb184acf5b262
parent91cfd0cf03a2084923cfc3ba82e31c588db614ec
update-rc.d: don't do anything if systemd.bbclass is inherited

We need the update-rc.d class to work when systemd is being used so that
packages that only have SysV init scripts still work.  However if a recipe
supports both we don't want to install SysV and systemd files under systemd.

To solve this, before doing real work in update-rc.d check if the systemd class
has been inherited and don't do anything if it has.

(From OE-Core rev: 0273a22fec3c9360df2510b759c5bf9af610551f)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/update-rc.d.bbclass