summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/update-rc.d
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-01-17 20:21:09 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-17 20:16:46 +0000
commit3db277b18b8923daca545aa53bcfbbe9d43d3baa (patch)
treebe8b83b1e43049621c99aecfea31a4502cb9e381 /meta/recipes-core/update-rc.d
parent200743b89e3af877ccd75cb9227403a98498daec (diff)
downloadpoky-3db277b18b8923daca545aa53bcfbbe9d43d3baa.tar.gz
update-rc.d: fix failure on target
The problem happened because the variables given to -n were not surounded by quotes. (From OE-Core rev: 98f17da7ccc1bf79fc5894f90e52769bdbcf89df) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/update-rc.d')
-rw-r--r--meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch4
1 files 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
24 shift 24 shift
25 25
26+sn=$initd/$bn 26+sn=$initd/$bn
27+if [ -L "$sn" -a -n $root ]; then 27+if [ -L "$sn" -a -n "$root" ]; then
28+ readlink=$(which readlink) 28+ readlink=$(which readlink)
29+ 29+
30+ if [ -n $readlink ]; then 30+ if [ -n "$readlink" ]; then
31+ sn=$($readlink "$sn") 31+ sn=$($readlink "$sn")
32+ case "$sn" in 32+ case "$sn" in
33+ /*) sn=${root}${sn} ;; 33+ /*) sn=${root}${sn} ;;