From a820581488d47e8e7425001f99bd9089edae0a9c Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Mon, 30 Aug 2021 17:45:50 +0200 Subject: [PATCH] Also put 'options inet6' on its own line. There was another instance where "printf '%s\n'" should've been used for writing /etc/resolv.conf. That is now also fixed. Signed-off-by: Diederik de Haas --- scripts/etc/init.d/rcS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/etc/init.d/rcS b/scripts/etc/init.d/rcS index 5a9d6e1b..c610f993 100755 --- a/scripts/etc/init.d/rcS +++ b/scripts/etc/init.d/rcS @@ -547,7 +547,7 @@ if [ "$ip4_addr" = "disable" ]; then # if IPv4 is disabled, configure the DNS resolver in glibc # to prefer IPv6 addresses (by performing AAAA lookups # before A lookups) - printf '%s' "options inet6" >> /etc/resolv.conf + printf '%s\n' "options inet6" >> /etc/resolv.conf elif [ "$ip4_addr" = "dhcp" ]; then log_msg_start "Configuring $ifname for IPv4 using DHCP... "