base-files: automatically handle paths and symlinks for RAMFS_COPY_BIN
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 10 Jul 2017 16:37:25 +0000 (18:37 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 11 Jul 2017 15:26:32 +0000 (17:26 +0200)
commit438dcbfe74a6da1a8949d8fb785092d934499b60
tree0f455ad4fd7d82cbe7c037afd27d9e9ca9537d12
parentf464da623db1a53231e5f7d54a51e355c0d32dff
base-files: automatically handle paths and symlinks for RAMFS_COPY_BIN

Depending on busybox applet selection, paths of basic utiilties may differ,
and may not work as symlinks to busybox. Simply using whatever binary is
found in PATH and detecting symlinks automatically is more robust and
easier to maintain.

The list of binaries is also slightly cleaned up and duplicates are
removed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
package/base-files/files/lib/upgrade/common.sh
package/base-files/files/lib/upgrade/stage2
package/base-files/files/sbin/sysupgrade
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
target/linux/ipq806x/base-files/lib/upgrade/platform.sh
target/linux/kirkwood/base-files/lib/upgrade/platform.sh
target/linux/mvebu/base-files/lib/upgrade/platform.sh
target/linux/pistachio/base-files/lib/upgrade/platform.sh
target/linux/rb532/base-files/lib/upgrade/platform.sh