projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3510193
)
target-generic-hostname: add /etc/hosts entry as well
author
Peter Korsgaard
<jacmet@sunsite.dk>
Fri, 22 Apr 2011 09:45:27 +0000
(11:45 +0200)
committer
Peter Korsgaard
<jacmet@sunsite.dk>
Fri, 22 Apr 2011 09:45:27 +0000
(11:45 +0200)
Some applications (like proftpd) tries to resolve hostname at startup,
so add it to /etc/hosts.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
target/generic/Makefile.in
patch
|
blob
|
history
diff --git
a/target/generic/Makefile.in
b/target/generic/Makefile.in
index 3a750c3b443531051bef4b207cf758da90b2df5c..ba6e4b06021e88cef3983c66934627a22beed03c 100644
(file)
--- 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