Add commands install_initd and remove_initd link to chkconfig, which
can handler LSB format init.d scripts. Needed by LSB commands check.
Bump PR to r2
Part fixes [Yocto 520]
Signed-off-by: Kang Kai <kai.kang@windriver.com>
SECTION = "console/utils"
PRIORITY = "required"
LICENSE = "GPLv2"
-PR = "r1"
+PR = "r2"
LIC_FILES_CHKSUM = "file://LSB_Setup.sh;beginline=3;endline=16;md5=97451c7c0786ce5bbe9ac58042945583"
# Only install file if it has a contents
install -d ${D}/usr/bin
install -m 0755 ${S}/LSB_Setup.sh ${D}/usr/bin
+ install -d ${D}/usr/lib/lsb
+ ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
+ ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd
}
+
+FILES_${PN} += "${libdir}/lsb"