ebtables: Move files only when src != dst.

While moving files from ${base_sbindir} to ${sbindir} check if both are same.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
Amarnath Valluri
2017-02-23 11:05:37 +02:00
committed by Joe MacDonald
parent 9fb708d875
commit 9f0eebd829
@@ -70,8 +70,10 @@ do_install () {
# The script ebtables-save refernces perl in exec_prefix, so
# move it to sbindir to avoid QA issue
install -d ${D}/${sbindir}
mv ${D}/${base_sbindir}/ebtables-save ${D}/${sbindir}
if ${base_sbindir} != ${sbindir} ; then
install -d ${D}/${sbindir}
mv ${D}/${base_sbindir}/ebtables-save ${D}/${sbindir}
fi
# Install systemd service files
install -d ${D}${systemd_unitdir}/system