From patchwork Thu Apr 3 10:53:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 336598 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id 84801140086 for ; Thu, 3 Apr 2014 21:53:36 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 063933FEDE for ; Thu, 3 Apr 2014 12:53:34 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 27C8A3F82C for ; Thu, 3 Apr 2014 12:53:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1001; q=dns/txt; s=ironport1; t=1396522410; x=1428058410; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=APjM7o52o9OMAfA5vvtugKzT2urcQg8ZE0qqs6WiLvk=; b=YiZldJNLMs+HNH9zQylDOMyBomPFIMkN404c2bc3vBrysAXJ8pXjLC2U N/+ilsCTLhAJy0miXv0z5t489NcbdbsH5fjA8NGhJ9FptCkh1p9Sar0n7 YrwBAXj3ySdsnNJIkBpRA2E+lRYJZj9CkPTUXE0GA2e4gMwMazq7EvbAE o=; X-IronPort-AV: E=Sophos;i="4.97,786,1389740400"; d="scan'208";a="4566611" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 03 Apr 2014 12:53:29 +0200 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Thu, 3 Apr 2014 12:53:29 +0200 Received: by localhost (Postfix, from userid 30007) id 8F4E0681EEA; Thu, 3 Apr 2014 10:53:29 +0000 (UTC) From: To: Subject: [PATCH 3/5] overlay-files: Correct path to fallback link Date: Thu, 3 Apr 2014 10:53:25 +0000 Message-ID: <295251f33f1b505cc37a910a9cfa337c5f7b7a49.1396522190.git.christian.braunersorensen@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Christian Sørensen Otherwise, it will ignore OVERLAY_BASE, and instead look for /$(basename file) instead of $OVERLAY_BASE/$file Signed-off-by: Christian Sørensen --- recipes/overlay-files/files/overlay.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/overlay-files/files/overlay.sh b/recipes/overlay-files/files/overlay.sh index 5f48894..2cb835b 100644 --- a/recipes/overlay-files/files/overlay.sh +++ b/recipes/overlay-files/files/overlay.sh @@ -7,7 +7,7 @@ OVERLAY_BASE="${USE_overlay_files_base}" for file in $OVERLAY_FILES ; do if test -e $OVERLAY_DIR$file ; then ln -sf $OVERLAY_DIR$file $OVERLAY_BASE$file - elif test -e `basename $file`.default ; then - ln -sf `basename $file`.default $OVERLAY_BASE$file + elif test -e ${OVERLAY_BASE}${file}.default ; then + ln -sf ${OVERLAY_BASE}${file}.default $OVERLAY_BASE$file fi done