From 983158e225c2947010e078bcd2f62205d9ee6911 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 22 Apr 2011 11:45:27 +0200 Subject: target-generic-hostname: add /etc/hosts entry as well Some applications (like proftpd) tries to resolve hostname at startup, so add it to /etc/hosts. Signed-off-by: Peter Korsgaard --- target/generic/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target') diff --git a/target/generic/Makefile.in b/target/generic/Makefile.in index 3a750c3b4..ba6e4b060 100644 --- a/target/generic/Makefile.in +++ b/target/generic/Makefile.in @@ -6,6 +6,8 @@ TARGET_GENERIC_GETTY_BAUDRATE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE target-generic-hostname: mkdir -p $(TARGET_DIR)/etc echo "$(TARGET_GENERIC_HOSTNAME)" > $(TARGET_DIR)/etc/hostname + $(SED) '$$a \127.0.1.1\t$(TARGET_GENERIC_HOSTNAME)' \ + -e '/^127.0.1.1/d' $(TARGET_DIR)/etc/hosts target-generic-issue: mkdir -p $(TARGET_DIR)/etc -- cgit v1.2.3-55-g7522