mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
200743b89e
commit
3db277b18b
@@ -24,10 +24,10 @@ Index: git/update-rc.d
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
+sn=$initd/$bn
|
+sn=$initd/$bn
|
||||||
+if [ -L "$sn" -a -n $root ]; then
|
+if [ -L "$sn" -a -n "$root" ]; then
|
||||||
+ readlink=$(which readlink)
|
+ readlink=$(which readlink)
|
||||||
+
|
+
|
||||||
+ if [ -n $readlink ]; then
|
+ if [ -n "$readlink" ]; then
|
||||||
+ sn=$($readlink "$sn")
|
+ sn=$($readlink "$sn")
|
||||||
+ case "$sn" in
|
+ case "$sn" in
|
||||||
+ /*) sn=${root}${sn} ;;
|
+ /*) sn=${root}${sn} ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user