summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2014-12-19 22:37:29 +0200
committerChris Buechler <cmb@pfsense.org>2014-12-22 17:36:49 -0600
commit0000cdf7bd8a29c30dcdd3ee651ca5f95a2c98bf (patch)
treeb397b0b523e43dada0e1b06db7122ec4d946de7a /etc/rc
parent792dbafd7b83e40e5bb9383294e2abb2b2ad083c (diff)
downloadpfsense-0000cdf7bd8a29c30dcdd3ee651ca5f95a2c98bf.zip
pfsense-0000cdf7bd8a29c30dcdd3ee651ca5f95a2c98bf.tar.gz
Prevent resolvconf(8) from stomping all over our newly generated
resolv.conf and subsequent updates.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 601f3f3..52d342d 100755
--- a/etc/rc
+++ b/etc/rc
@@ -273,6 +273,11 @@ if [ ! -L /etc/resolv.conf ]; then
/bin/ln -s /var/etc/resolv.conf /etc/resolv.conf
fi
+if [ ! -L /etc/resolvconf.conf ]; then
+ /bin/rm -rf /etc/resolvconf.conf
+ /bin/ln -s /var/etc/resolvconf.conf /etc/resolvconf.conf
+fi
+
# Setup compatibility link for packages that
# have trouble overriding the PREFIX configure
# argument since we build our packages in a
OpenPOWER on IntegriCloud