diff options
| -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 | |||
| 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} ;; |
