diff --git a/templates/resolv.conf_sol11.erb b/templates/resolv.conf_sol11.erb index 92d6cf7..78198a4 100644 --- a/templates/resolv.conf_sol11.erb +++ b/templates/resolv.conf_sol11.erb @@ -1,26 +1,24 @@ # # _AUTOGENERATED_FROM_SMF_V1_ # # WARNING: THIS FILE GENERATED FROM SMF DATA. # DO NOT EDIT THIS FILE. EDITS WILL BE LOST. # See resolv.conf(4) for details. <%- if @domainname_real -%> domain <%= @domainname_real %> <%- end -%> <% if !@searchpath.empty? -%> <% if @searchpath.kind_of? Array -%> search <%= @searchpath.uniq().join(" ") %> <% else -%> search <%= @searchpath %> <% end -%> <% end -%> -<% @nameservers.each do |ns| -%> -nameserver <%= ns %> -<% end -%> <% if @options && !@options.empty? -%> -<% @options.each do |option| -%> -options <%= option %> +options <%= @options.join(" ") %> <% end -%> +<% @nameservers.each do |ns| -%> +nameserver <%= ns %> <% end -%>