Patch from pdinoto :
authorEric Andersen <andersen@codepoet.org>
Sun, 23 Jan 2005 10:55:41 +0000 (10:55 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 23 Jan 2005 10:55:41 +0000 (10:55 -0000)
0000036: [PATCH] udhcpc: Allow build w/o PCMCIA

This patch makes missing PCMCIA config files non-fatal to allow using udhcpc
without pcmcia-cs package

package/udhcp/udhcp.mk

index 32f5ddf4f3fbfaaa2ba0e294f2ae0250f6b8f0e0..7360b9cfcb9cc6407a79df79e3d1aa9a048dbc4a 100644 (file)
@@ -45,9 +45,9 @@ $(UDHCP_DIR)/udhcpc: $(UDHCP_DIR)/.unpacked
        $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(UDHCP_DIR)
 
 $(TARGET_DIR)/sbin/udhcpc: $(UDHCP_DIR)/udhcpc
-       $(SED) 's/pump/udhcpc/' $(TARGET_DIR)/etc/pcmcia/network*
-       $(SED) 's/PUMP/UDHCPC/' $(TARGET_DIR)/etc/pcmcia/network*
-       $(SED) 's/DHCP="n"/DHCP="y"/' $(TARGET_DIR)/etc/pcmcia/network*
+       -$(SED) 's/pump/udhcpc/' $(TARGET_DIR)/etc/pcmcia/network*
+       -$(SED) 's/PUMP/UDHCPC/' $(TARGET_DIR)/etc/pcmcia/network*
+       -$(SED) 's/DHCP="n"/DHCP="y"/' $(TARGET_DIR)/etc/pcmcia/network*
        mkdir -p $(TARGET_DIR)/sbin
        rm -f $(TARGET_DIR)/sbin/udhcpc
        cp $(UDHCP_DIR)/udhcpc $(TARGET_DIR)/sbin/