summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-29 18:38:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-29 18:38:21 +0000
commitfb8570171d16140e83ac1762e4337d3df815f45b (patch)
tree6489c407eaed78d7e7740350912ab12a1cf5cc19 /etc/rc
parent0a9da6b5ff3d36035895f9f0bea8e2b773be7e3f (diff)
downloadpfsense-fb8570171d16140e83ac1762e4337d3df815f45b.zip
pfsense-fb8570171d16140e83ac1762e4337d3df815f45b.tar.gz
Improve check for /conf symlink on non cd-rom platform.
Suggested-by: Fernando Tarl‡ Cardoso Lemos
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index f128941..7318f75 100755
--- a/etc/rc
+++ b/etc/rc
@@ -57,7 +57,8 @@ if [ ! "$PLATFORM" = "cdrom" ] ; then
# to /cf/conf
if [ -d "/conf" ]; then
# If item is not a symlink then rm and recreate
- if ! test -L /conf; then
+ CONFPOINTSTO=`readlink /conf`
+ if ! test "x$CONFPOINTSTO" = "x/cf/conf"; then
rm -rf /conf
ln -s /cf/conf /conf
fi
OpenPOWER on IntegriCloud