procd: create symlinks in /sbin

procd and /etc/preinit have hardcoded pathes to binaries in /sbin.
Create symlinks in /sbin to the binaries in /usr/sbin.

Signed-off-by: Theodore A. Roth <theodore_roth@trimble.com>
This commit is contained in:
Theodore A. Roth
2017-01-20 11:06:39 -07:00
committed by Khem Raj
parent d481aa24e7
commit 42f6fe8fa3

View File

@@ -25,6 +25,11 @@ do_install_append() {
install -Dm 0755 ${WORKDIR}/reload_config ${D}${base_sbindir}/reload_config
install -Dm 0755 ${WORKDIR}/hotplug.json ${D}${sysconfdir}/hotplug.json
install -Dm 0755 ${WORKDIR}/hotplug-preinit.json ${D}${sysconfdir}/hotplug-preinit.json
mkdir -p ${D}/sbin
ln -s /usr/sbin/procd ${D}/sbin/procd
ln -s /usr/sbin/init ${D}/sbin/init
ln -s /usr/sbin/askfirst ${D}/sbin/askfirst
}
FILES_${PN} += "${base_libdir}"