package/ifupdown-scripts: always install /etc/network/nfs_check
authorCarlos Santos <unixmania@gmail.com>
Mon, 9 Mar 2020 02:50:01 +0000 (23:50 -0300)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 11 Mar 2020 20:29:22 +0000 (21:29 +0100)
The script is minuscle and can be useful to configure an interface via
DHCP at run-time.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/ifupdown-scripts/ifupdown-scripts.mk

index abb45757774d21630b36a06fda8bc7b0ba5a2e29..d387c530f1cbdb02ea1cf7015cbaf94f19f6667f 100644 (file)
@@ -25,13 +25,12 @@ define IFUPDOWN_SCRIPTS_DHCP
                echo "  wait-delay 15"; \
                echo "  hostname \$$(hostname)"; \
        ) >> $(TARGET_DIR)/etc/network/interfaces
-       $(INSTALL) -m 0755 -D $(IFUPDOWN_SCRIPTS_PKGDIR)/nfs_check \
-               $(TARGET_DIR)/etc/network/nfs_check
 endef
 endif
 
 define IFUPDOWN_SCRIPTS_INSTALL_TARGET_CMDS
-       mkdir -p $(TARGET_DIR)/etc/network
+       $(INSTALL) -m 0755 -D $(IFUPDOWN_SCRIPTS_PKGDIR)/nfs_check \
+               $(TARGET_DIR)/etc/network/nfs_check
        $(call SYSTEM_RSYNC,$(IFUPDOWN_SCRIPTS_PKGDIR)/network,$(TARGET_DIR)/etc/network)
        $(IFUPDOWN_SCRIPTS_LOCALHOST)
        $(IFUPDOWN_SCRIPTS_DHCP)