summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper')
-rwxr-xr-xnet-scripts/net.modules.d/helpers.d/dhcpcd-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper b/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
index 6568d10..29710e3 100755
--- a/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
+++ b/net-scripts/net.modules.d/helpers.d/dhcpcd-wrapper
@@ -37,7 +37,7 @@ if [[ ${action} == "up" ]]; then
if [[ ${d} != *" nodns "* ]]; then
eval search=\"\$\{dns_search_${ifvar}\}\"
if [[ -n ${search} ]]; then
- tmp="${revolv}.$$"
+ tmp="${resolv}.$$"
egrep -v "^[ \t]*(search|domain)[ \t]*" "${resolv}" > "${tmp}"
echo "search ${search}" >> "${tmp}"
mv "${tmp}" "${resolv}"