remove binary with same name before installing init to prevent overwriting busybox...
authorDavid Anders <dave123@abcsinc.com>
Tue, 24 Jan 2006 21:22:20 +0000 (21:22 -0000)
committerDavid Anders <dave123@abcsinc.com>
Tue, 24 Jan 2006 21:22:20 +0000 (21:22 -0000)
package/netkitbase/netkitbase.mk

index 820465dbe741727ce9ababca77e12b51b5241899..959fcea7b692df28d590ce8ca60a0a7732266385 100644 (file)
@@ -38,6 +38,7 @@ $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY): $(NETKITBASE_DIR)/$(NETKITBASE_BINARY
        # Only install a few selected items...
        mkdir -p $(TARGET_DIR)/usr/sbin
        cp $(NETKITBASE_DIR)/$(NETKITBASE_BINARY) $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
+       rm -f $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
        mkdir -p $(TARGET_DIR)/etc
        cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/
        $(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf