base-files: automatically handle paths and symlinks for RAMFS_COPY_BIN
[openwrt/openwrt.git] / target / linux / bcm53xx / base-files / lib / upgrade / platform.sh
index f2e007db22fa8fde93bf0dd58b359f6515e0445c..1f778c72b6892b9accace01be00e11dcd11bf907 100644 (file)
@@ -1,3 +1,5 @@
+RAMFS_COPY_BIN='osafeloader oseama'
+
 PART_NAME=firmware
 
 # $(1): file to read magic from
@@ -260,8 +262,6 @@ platform_pre_upgrade_seama() {
 }
 
 platform_pre_upgrade() {
-       export RAMFS_COPY_BIN="${RAMFS_COPY_BIN} /usr/bin/osafeloader /usr/bin/oseama /bin/sed"
-
        local file_type=$(platform_identify "$1")
 
        [ "$(platform_flash_type)" != "nand" ] && return