mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
base-files: drop unused jffs2_copy_config()
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)
This commit is contained in:
parent
1d68badbb3
commit
ebef2c27eb
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
|||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=201
|
PKG_RELEASE:=202
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
@ -207,16 +207,6 @@ get_partitions() { # <device> <filename>
|
|||||||
fi
|
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() {
|
indicate_upgrade() {
|
||||||
. /etc/diag.sh
|
. /etc/diag.sh
|
||||||
set_state upgrade
|
set_state upgrade
|
||||||
|
Loading…
x
Reference in New Issue
Block a user