base-files: drop unused jffs2_copy_config()

Its last usage was dropped back in 2013 in the commit b95bdc8ab5
("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 f58ca6ee57)
This commit is contained in:
Rafał Miłecki
2019-07-02 13:16:08 +02:00
committed by Jo-Philipp Wich
parent 1d68badbb3
commit ebef2c27eb
2 changed files with 1 additions and 11 deletions

View 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