From 98f17da7ccc1bf79fc5894f90e52769bdbcf89df Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Thu, 17 Jan 2013 20:21:09 +0200 Subject: update-rc.d: fix failure on target The problem happened because the variables given to -n were not surounded by quotes. Signed-off-by: Laurentiu Palcu Signed-off-by: Richard Purdie --- .../update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch b/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch index 4476e9101d..6f402ddb6d 100644 --- a/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch +++ b/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch @@ -24,10 +24,10 @@ Index: git/update-rc.d shift +sn=$initd/$bn -+if [ -L "$sn" -a -n $root ]; then ++if [ -L "$sn" -a -n "$root" ]; then + readlink=$(which readlink) + -+ if [ -n $readlink ]; then ++ if [ -n "$readlink" ]; then + sn=$($readlink "$sn") + case "$sn" in + /*) sn=${root}${sn} ;; -- cgit 1.2.3-korg