summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-07 03:07:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-07 03:07:41 +0000
commit6bab150e3dc7a36b1d138bec31c3ea2ce0283a5b (patch)
treedcff7160bec5c5a6a90123ac5ce4fde078a87384 /etc
parent9c4189989933e4d45e42897ae3995dfa86ae364b (diff)
downloadpfsense-6bab150e3dc7a36b1d138bec31c3ea2ce0283a5b.zip
pfsense-6bab150e3dc7a36b1d138bec31c3ea2ce0283a5b.tar.gz
If /etc/syslog.conf is not a symlink then correct its behavior
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 07b7942..e786115 100755
--- a/etc/rc
+++ b/etc/rc
@@ -53,6 +53,12 @@ if [ ! "$PLATFORM" = "cdrom" ]; then
fi
# Repair symlinks if they are broken
+if [ ! -L /etc/syslog.conf ]; then
+ rm -rf /etc/syslog.conf
+ ln -s /var/etc/syslog.conf /etc/syslog.conf
+fi
+
+# Repair symlinks if they are broken
if [ ! -L /etc/hosts ]; then
rm -rf /etc/hosts
ln -s /var/etc/hosts /etc/hosts
OpenPOWER on IntegriCloud