diff options
Diffstat (limited to 'recipes-core/busybox/busybox_%.bbappend')
-rw-r--r-- | recipes-core/busybox/busybox_%.bbappend | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend index 3c3d7f0..87a275d 100644 --- a/recipes-core/busybox/busybox_%.bbappend +++ b/recipes-core/busybox/busybox_%.bbappend @@ -146,11 +146,8 @@ pkg_postinst_${PN} () { if test ! -e "$link"; then # we can use busybox here because even if we are using splitted busybox # we've made a symlink from /bin/busybox to /bin/busybox.nosuid. - # The sed expression will fail if ${base_bindir}, ${base_sbindir}, ${bindir} or - # ${sbindir} contains . or .., so don't do that! - to="$(echo -n "$link" | busybox sed -r -e 's@^/[^/]+/@@' -e 's@[^/]+@..@g')${base_bindir}/busybox$suffix" busybox rm -f $link - busybox ln -s $to $link + busybox ln -s "${base_bindir}/busybox$suffix" $link fi done < /etc/busybox.links$suffix fi |