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:38 +0000
commit98f17da7ccc1bf79fc5894f90e52769bdbcf89df (patch)
treebccc877db71e0204f4a50bcfd16591e5b0548c5f /meta/recipes-core/update-rc.d
parent9a93866067253746a889bfe444b6036cf85944b4 (diff)
downloadopenembedded-core-contrib-98f17da7ccc1bf79fc5894f90e52769bdbcf89df.tar.gz
openembedded-core-contrib-98f17da7ccc1bf79fc5894f90e52769bdbcf89df.tar.bz2
openembedded-core-contrib-98f17da7ccc1bf79fc5894f90e52769bdbcf89df.zip
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 <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
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} ;;