~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] main/busybox: allow setting hostname dynamically

Tim Wiederhake <twied@gmx.net>
Details
Message ID
<20201029215428.11279-1-twied@gmx.net>
DKIM signature
missing
Download raw message
Patch: +3 -0
---
 main/busybox/default.script | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main/busybox/default.script b/main/busybox/default.script
index 2b787b1484..9b6495585a 100644
--- a/main/busybox/default.script
+++ b/main/busybox/default.script
@@ -90,6 +90,9 @@ resolvconf() {
	for i in $NO_DNS; do
		[ "$i" = "$interface" ] && return
	done
	if [ -n "$hostname" ] && [ "$(hostname)" = "localhost" ]; then
		hostname $hostname
	fi
	echo -n > "$RESOLV_CONF.$$"
	if [ -n "$search" ]; then
		echo "search $search" >> "$RESOLV_CONF.$$"
--
2.28.0
Reply to thread Export thread (mbox)