summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-07-02 07:20:16 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-07-02 07:20:16 +0000
commitec771579451c54c8590800ca1803cd6bfcc9a116 (patch)
treec9275f6388124fb30add9cd2ec109062af6b7f32
parenta1d845f168e6d159f26bfada9f14604cd66d5356 (diff)
downloadbuildroot-novena-ec771579451c54c8590800ca1803cd6bfcc9a116.tar.gz
buildroot-novena-ec771579451c54c8590800ca1803cd6bfcc9a116.zip
ifplugd: only install default config if not provided in skeleton
-rw-r--r--package/ifplugd/ifplugd.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/ifplugd/ifplugd.mk b/package/ifplugd/ifplugd.mk
index 204bad7dc..c91f96c37 100644
--- a/package/ifplugd/ifplugd.mk
+++ b/package/ifplugd/ifplugd.mk
@@ -18,12 +18,13 @@ $(eval $(call AUTOTARGETS,package,ifplugd))
$(IFPLUGD_HOOK_POST_INSTALL):
$(INSTALL) -d $(TARGET_DIR)/etc/ifplugd
- $(INSTALL) $(IFPLUGD_DIR)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/
+ @if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
+ $(INSTALL) $(IFPLUGD_DIR)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/; \
+ $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \
+ fi
$(INSTALL) -m 0755 $(IFPLUGD_DIR)/conf/ifplugd.action \
$(TARGET_DIR)/etc/ifplugd/
$(INSTALL) -m 0755 $(IFPLUGD_DIR)/conf/ifplugd.init \
$(TARGET_DIR)/etc/init.d/S45ifplugd
- # continue booting without waiting for fork (no -w option)
- $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf
# don't use bash for init script
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd