update-rcd.bbclass: handle both sysvinit and systemd features being present
authorRoss Burton <ross.burton@intel.com>
Thu, 28 Feb 2013 16:28:28 +0000 (16:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 22:43:03 +0000 (22:43 +0000)
commit1f440cd0d57385165e3b188ba03fe97587af48e0
treefc1ab1e60047cac61c1045a4f7b2fc475ec67e76
parentb4547e2ece3d2aaf697a3957ed339f6b08771f95
update-rcd.bbclass: handle both sysvinit and systemd features being present

Run the helper if the sysvinit feature is present, or if the systemd feature is
present but the systemd class hasn't been inherited.  We want to run in the
latter case as systemd has sysvinit compatibility, but we don't want to always
run so that pure systemd images don't have redundant sysvinit files.

(From OE-Core rev: a3856ab19f1d4ae312f559521785ad4384700729)

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