Skip to content

Commit

Permalink
Also put 'options inet6' on its own line.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
diederikdehaas committed Aug 30, 2021
1 parent db3b4c5 commit a820581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -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... "

Expand Down

0 comments on commit a820581

Please sign in to comment.