diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-11-29 18:38:21 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-11-29 18:38:21 +0000 |
commit | fb8570171d16140e83ac1762e4337d3df815f45b (patch) | |
tree | 6489c407eaed78d7e7740350912ab12a1cf5cc19 /etc/rc | |
parent | 0a9da6b5ff3d36035895f9f0bea8e2b773be7e3f (diff) | |
download | pfsense-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-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 |