Lines Matching +refs:write +refs:if +refs:changed
1 if [ ! "$_NETWORKING_RESOLV_SUBR" ]; then _NETWORKING_RESOLV_SUBR=1
46 # all possible sub-domains? In example, if the domain is "sub.domain.com", when
88 if ( match(tl0, /^[[:space:]]*search[[:space:]]+/) ) {
118 if ( search_all ) {
121 if ( search_ndots < 1 )
126 if ( length(search) ) search = search " "
134 if ( domain_found && search_found ) { print; next }
137 if ( ! domain_found && \
140 if ( length(domain) ) {
145 else if ( ! search_found && \
148 if ( length(search) ) {
156 if ( ! search_found && length(search) )
158 if ( ! domain_found && length(domain) )
171 if [ "$RESOLVER_SEARCH_DOMAINS_ALL" = "1" ]; then
187 # Save domain/search information only if different from resolv.conf(5)
189 if [ "$domain" != "$( f_resolv_conf_domain )" -o \
196 # Create a new temporary file to write our resolv.conf(5)
207 # we write it out and mv(1) it into place).
223 # them to the top if not found), in strict-adherence to the
259 # if editing the first nameserver instance, two if editing the second, three if
261 # entered by the user (if non-null) will be added to resolv.conf(5) as a new
280 if ( nsindex < 1 ) exit 1
284 if ( found ) { print; next }
286 if ( match(tolower($0), /^[[:space:]]*nameserver[[:space:]]+/)) {
287 if ( ++n == nsindex ) {
288 if ( $2 != old_value ) exit 2
289 if ( new_value != "" ) printf "%s%s\n", \
297 END { if ( ! found ) exit 3 }
312 if [ $index -gt 0 ]; then
313 if [ "$USE_XDIALOG" ]; then
341 # Save only if the user changed the nameserver.
343 if [ $index -eq "0" -a "$new_ns" ]; then
348 if [ "$new_ns" ]; then
356 # Create a new temporary file to write our new resolv.conf(5)
387 # Produce an appropriate error message if necessary.
474 # Return if "Cancel" was chosen (-1) or ESC was pressed (255)
475 if [ $retval -ne $DIALOG_OK ]; then