diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-01-17 20:21:09 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-17 20:16:38 +0000 |
commit | 98f17da7ccc1bf79fc5894f90e52769bdbcf89df (patch) | |
tree | bccc877db71e0204f4a50bcfd16591e5b0548c5f | |
parent | 9a93866067253746a889bfe444b6036cf85944b4 (diff) | |
download | openembedded-core-98f17da7ccc1bf79fc5894f90e52769bdbcf89df.tar.gz openembedded-core-98f17da7ccc1bf79fc5894f90e52769bdbcf89df.tar.bz2 openembedded-core-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>
-rw-r--r-- | meta/recipes-core/update-rc.d/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 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} ;; |