summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-04 23:03:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-04 23:03:43 +0000
commit6a2b5f1cda4e71f35e2326818e43153e5f4fed51 (patch)
treec4934d211fc223061bcae36df38ff5b6d9ae8ddb /etc/rc.firmware
parent5ce93f0b150e9a2b121342ab59b0230288c2b803 (diff)
downloadpfsense-6a2b5f1cda4e71f35e2326818e43153e5f4fed51.zip
pfsense-6a2b5f1cda4e71f35e2326818e43153e5f4fed51.tar.gz
Ensure proper /etc/hosts symlink after upgrade
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 42bed9b..5a17ac6 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -150,6 +150,10 @@ pfSenseupgrade)
# restore config
cp -p /tmp/configbak/* /conf
+ # restore /etc symlinks
+ rm /etc/hosts
+ ln -s /var/etc/hosts /etc/hosts
+
restore_chflags
# remount /cf ro
OpenPOWER on IntegriCloud