diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-02-23 11:05:37 +0200 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-03-23 08:26:59 -0400 |
commit | 9f0eebd8294713ac3b4571a0a635ecad85d9db7f (patch) | |
tree | 4001517e1ed8f0085f9372d7efbf67b379c4a5fd /meta-networking | |
parent | 9fb708d87594dea8dff64de8b860611bea2e456d (diff) | |
download | meta-openembedded-contrib-9f0eebd8294713ac3b4571a0a635ecad85d9db7f.tar.gz |
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>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb index d24b81bc19..f5e28714eb 100644 --- a/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb +++ b/meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb @@ -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 |