summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-29 18:38:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-29 18:38:27 +0000
commit15d5221dd823a01dbb6b172be43fafc6dbc39929 (patch)
tree6783414d5f6d073b92926785639788e7b265b674 /etc
parent98ef7bf156902ba8e9b1dde10872a5acacbe0dc6 (diff)
downloadpfsense-15d5221dd823a01dbb6b172be43fafc6dbc39929.zip
pfsense-15d5221dd823a01dbb6b172be43fafc6dbc39929.tar.gz
Improve check for /conf symlink on non cd-rom platform.
Suggested-by: Fernando Tarl‡ Cardoso Lemos
Diffstat (limited to 'etc')
-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