]> code.ossystems Code Review - openembedded-core.git/commitdiff
update-rc.d: fix failure on target
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Thu, 17 Jan 2013 18:21:09 +0000 (20:21 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Jan 2013 20:16:38 +0000 (20:16 +0000)
The problem happened because the variables given to -n were not
surounded by quotes.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch

index 4476e9101de1c3015e4d817527940e9060996c13..6f402ddb6d16c91cff3925f14646d8510ec44a76 100644 (file)
@@ -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} ;;