Skip to contentSkip to conversation

avahi: remove useless 'mkdir -p' in AVAHI_INSTALL_INIT_SYSTEMD

Buildroot Thomas Petazzoni 1 participant 1 message Oct 19, 2014

lore
Share & tools
lore
#0 lore raw

commit: http://git.buildroot.net/buildroot/commit/?id=6c947771424b139199fc56bb7fff47755a17c6a9
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

In AVAHI_INSTALL_INIT_SYSTEMD, since we're using 'install -D' to install /usr/lib/tmpfiles.d/avahi.conf in $(TARGET_DIR), there's no need to have a 'mkdir -p' before that, since 'install -D' creates the directories as needed.

---
 package/avahi/avahi.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/avahi/avahi.mk +0 -2
index cafb2db..b684ab7 100644
@@ -172,8 +172,6 @@ define AVAHI_INSTALL_INIT_SYSTEMD
 	ln -fs /lib/systemd/system/avahi-dnsconfd.service \
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/avahi-dnsconfd.service
 
-	mkdir -p $(TARGET_DIR)/usr/lib/tmpfiles.d
-
 	$(INSTALL) -D -m 644 package/avahi/avahi_tmpfiles.conf \
 		$(TARGET_DIR)/usr/lib/tmpfiles.d/avahi.conf
 endef