mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
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 <jacmet@sunsite.dk>
This commit is contained 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
|
||||
|
||||
Reference in New Issue
Block a user