[oe-commits] Laurentiu Palcu : update-rc.d: fix failure on target
git at git.openembedded.org
git at git.openembedded.org
Thu Jan 17 20:19:54 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 98f17da7ccc1bf79fc5894f90e52769bdbcf89df
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=98f17da7ccc1bf79fc5894f90e52769bdbcf89df
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Thu Jan 17 20:21:09 2013 +0200
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
.../update-rc.d/check-if-symlinks-are-valid.patch | 4 ++--
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 4476e91..6f402dd 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} ;;
More information about the Openembedded-commits
mailing list