diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-29 18:38:27 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-29 18:38:27 +0000 |
commit | 15d5221dd823a01dbb6b172be43fafc6dbc39929 (patch) | |
tree | 6783414d5f6d073b92926785639788e7b265b674 /etc | |
parent | 98ef7bf156902ba8e9b1dde10872a5acacbe0dc6 (diff) | |
download | pfsense-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-x | etc/rc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |