summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-07 00:19:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-07 00:19:13 +0000
commitc8fcdb2fe21ab04d530d7657e769886019beb227 (patch)
tree44bb428ef2f7edc6b94d97fa731f73753db2f4be
parente1a8dc99995e2ad9ffd1fc99f24ac9ed09a55b59 (diff)
downloadpfsense-c8fcdb2fe21ab04d530d7657e769886019beb227.zip
pfsense-c8fcdb2fe21ab04d530d7657e769886019beb227.tar.gz
If /etc/hosts is a file restore the symlink
-rwxr-xr-xetc/rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 9b65537..bb80341 100755
--- a/etc/rc
+++ b/etc/rc
@@ -31,6 +31,11 @@ SWAPDEVICE=`cat /etc/fstab | grep swap | cut -f1`
/usr/local/bin/php -f /etc/rc.conf_mount_rw
+if [ -f /etc/hosts ]; then
+ rm /etc/hosts
+ ln -s /var/etc/hosts /etc/hosts
+fi
+
/etc/rc.d/initrandom start >/dev/null
/etc/rc.d/random start >/dev/null
OpenPOWER on IntegriCloud