summaryrefslogtreecommitdiffstats
path: root/make/udhcp.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-19 05:47:22 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-19 05:47:22 +0000
commit8d4ef78e416606bba8982ddb2122827122839209 (patch)
treeb990f7fdd9a0b27ef11ef1b4c5679185861e6060 /make/udhcp.mk
parent83bb3ab9f2a869063c084c77d9fb91d70b0dc4e7 (diff)
downloadbuildroot-novena-8d4ef78e416606bba8982ddb2122827122839209.tar.gz
buildroot-novena-8d4ef78e416606bba8982ddb2122827122839209.zip
Update udhcp. Make sure /usr/share/udhcpc/default.script
is executable
Diffstat (limited to 'make/udhcp.mk')
-rw-r--r--make/udhcp.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/make/udhcp.mk b/make/udhcp.mk
index 9aaafe4c1..14437bccf 100644
--- a/make/udhcp.mk
+++ b/make/udhcp.mk
@@ -3,7 +3,7 @@
# uchdp DHCP client and/or server
#
#############################################################
-# Copyright (C) 2001, 2002 by Erik Andersen <andersen@codepoet.org>
+# Copyright (C) 2001-2003 by Erik Andersen <andersen@codepoet.org>
# Copyright (C) 2002 by Tim Riker <Tim@Rikers.org>
#
# This program is free software; you can redistribute it and/or modify
@@ -44,9 +44,16 @@ $(UDHCP_DIR)/udhcpc: $(UDHCP_DIR)/.unpacked
$(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" prefix="$(TARGET_DIR)" -C $(UDHCP_DIR)
$(TARGET_DIR)/sbin/udhcpc: $(UDHCP_DIR)/udhcpc
+ perl -i -p -e 's/pump/udhcpc/' $(TARGET_DIR)/etc/pcmcia/network*
+ perl -i -p -e 's/PUMP/UDHCPC/' $(TARGET_DIR)/etc/pcmcia/network*
+ perl -i -p -e 's/DHCP="n"/DHCP="y"/' $(TARGET_DIR)/etc/pcmcia/network*
+ mkdir -p $(TARGET_DIR)/sbin
cp $(UDHCP_DIR)/udhcpc $(TARGET_DIR)/sbin/
+ mkdir -p $(TARGET_DIR)/usr/share/udhcpc
+ cp $(UDHCP_DIR)/samples/simple.script $(TARGET_DIR)/usr/share/udhcpc/default.script
+ chmod a+x $(TARGET_DIR)/sbin/udhcpc $(TARGET_DIR)/usr/share/udhcpc/default.script
-udhcp: uclibc $(TARGET_DIR)/sbin/udhcpc
+udhcp: uclibc pcmcia $(TARGET_DIR)/sbin/udhcpc
udhcp-clean:
rm -f $(TARGET_DIR)/sbin/udhcpc