mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
ifplugd: only run post-install hook when needed
This commit is contained in:
parent
0a934f1c30
commit
c0c54bc475
@ -16,7 +16,7 @@ IFPLUGD_DEPENDENCIES = uclibc libdaemon
|
|||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,ifplugd))
|
$(eval $(call AUTOTARGETS,package,ifplugd))
|
||||||
|
|
||||||
$(IFPLUGD_HOOK_POST_INSTALL):
|
$(IFPLUGD_HOOK_POST_INSTALL): $(IFPLUGD_TARGET_INSTALL_TARGET)
|
||||||
$(INSTALL) -d $(TARGET_DIR)/etc/ifplugd
|
$(INSTALL) -d $(TARGET_DIR)/etc/ifplugd
|
||||||
@if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
|
@if [ ! -f $(TARGET_DIR)/etc/ifplugd/ifplugd.conf ]; then \
|
||||||
$(INSTALL) $(IFPLUGD_DIR)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/; \
|
$(INSTALL) $(IFPLUGD_DIR)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/; \
|
||||||
@ -28,3 +28,4 @@ $(IFPLUGD_HOOK_POST_INSTALL):
|
|||||||
$(TARGET_DIR)/etc/init.d/S45ifplugd
|
$(TARGET_DIR)/etc/init.d/S45ifplugd
|
||||||
# don't use bash for init script
|
# don't use bash for init script
|
||||||
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
|
$(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd
|
||||||
|
touch $@
|
Loading…
x
Reference in New Issue
Block a user