base-files: drop unused jffs2_copy_config()
authorRafał Miłecki <rafal@milecki.pl>
Tue, 2 Jul 2019 11:16:08 +0000 (13:16 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 13 Sep 2019 19:56:47 +0000 (15:56 -0400)
Its last usage was dropped back in 2013 in the commit b95bdc8ab56e
("kernel/base-files: clean up old code related to refreshing mtd
partitions, it is no longer used anywhere").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit f58ca6ee57b77350c69639defdceacb2e77e2249)

package/base-files/Makefile
package/base-files/files/lib/upgrade/common.sh

index c84d2763c2ceccde7c6af520a6883c93dc7f22e7..f32c2b440f5ccb59dc67da1e6bf6ca6a9e9444c7 100644 (file)
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/feeds.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=201
+PKG_RELEASE:=202
 PKG_FLAGS:=nonshared
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
index bbedeefd262e8f2a25c7fe6e0570fffc64b33099..0f6fab97f8f89840d1472935e6e545ec6da0e5c9 100644 (file)
@@ -207,16 +207,6 @@ get_partitions() { # <device> <filename>
        fi
 }
 
-jffs2_copy_config() {
-       if grep rootfs_data /proc/mtd >/dev/null; then
-               # squashfs+jffs2
-               mtd -e rootfs_data jffs2write "$CONF_TAR" rootfs_data
-       else
-               # jffs2
-               mtd jffs2write "$CONF_TAR" rootfs
-       fi
-}
-
 indicate_upgrade() {
        . /etc/diag.sh
        set_state upgrade