From 15d5221dd823a01dbb6b172be43fafc6dbc39929 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 29 Nov 2007 18:38:27 +0000 Subject: Improve check for /conf symlink on non cd-rom platform. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: Fernando Tarl‡ Cardoso Lemos --- etc/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.1