summaryrefslogtreecommitdiffstats
path: root/package/ifplugd/ifplugd.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-07-10 08:17:39 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-07-10 08:17:39 +0000
commitc0c54bc475a16e8ceb85680d2377a77f3ff38720 (patch)
treefa1f8ad2c1aab71c64abdc61f2828870e857b9a2 /package/ifplugd/ifplugd.mk
parent0a934f1c3006807f937982ee0214be4b0f1e75a0 (diff)
downloadbuildroot-novena-c0c54bc475a16e8ceb85680d2377a77f3ff38720.tar.gz
buildroot-novena-c0c54bc475a16e8ceb85680d2377a77f3ff38720.zip
ifplugd: only run post-install hook when needed
Diffstat (limited to 'package/ifplugd/ifplugd.mk')
-rw-r--r--package/ifplugd/ifplugd.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/ifplugd/ifplugd.mk b/package/ifplugd/ifplugd.mk
index c91f96c37..570a57608 100644
--- a/package/ifplugd/ifplugd.mk
+++ b/package/ifplugd/ifplugd.mk
@@ -16,7 +16,7 @@ IFPLUGD_DEPENDENCIES = uclibc libdaemon
$(eval $(call AUTOTARGETS,package,ifplugd))
-$(IFPLUGD_HOOK_POST_INSTALL):
+$(IFPLUGD_HOOK_POST_INSTALL): $(IFPLUGD_TARGET_INSTALL_TARGET)
$(INSTALL) -d $(TARGET_DIR)/etc/ifplugd
@if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
$(INSTALL) $(IFPLUGD_DIR)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/; \
@@ -28,3 +28,4 @@ $(IFPLUGD_HOOK_POST_INSTALL):
$(TARGET_DIR)/etc/init.d/S45ifplugd
# don't use bash for init script
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
+ touch $@ \ No newline at end of file