~alpine/aports

main/busybox: allow setting hostname dynamically v1 PROPOSED

Tim Wiederhake <twied@gmx.net>
Tim Wiederhake: 1
 main/busybox: allow setting hostname dynamically

 1 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3376/mbox | git am -3
Learn more about email & git

[PATCH] main/busybox: allow setting hostname dynamically Export this patch

Tim Wiederhake <twied@gmx.net>
---
 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