include $(INCLUDE_DIR)/feeds.mk
PKG_NAME:=base-files
-PKG_RELEASE:=202
+PKG_RELEASE:=203
PKG_FLAGS:=nonshared
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
do_upgrade_stage2() {
v "Performing system upgrade..."
- if [ -n "$do_upgrade" ]; then
- eval "$do_upgrade"
- elif type 'platform_do_upgrade' >/dev/null 2>/dev/null; then
+ if type 'platform_do_upgrade' >/dev/null 2>/dev/null; then
platform_do_upgrade "$IMAGE"
else
default_do_upgrade "$IMAGE"
# Recognize type of passed file and start the upgrade process
nand_do_upgrade() {
- if [ -n "$IS_PRE_UPGRADE" ]; then
- # Previously, nand_do_upgrade was called from the platform_pre_upgrade
- # hook; this piece of code handles scripts that haven't been
- # updated. All scripts should gradually move to call nand_do_upgrade
- # from platform_do_upgrade instead.
- export do_upgrade="nand_do_upgrade '$1'"
- return
- fi
-
local file_type=$(identify $1)
if type 'platform_nand_pre_upgrade' >/dev/null 2>/dev/null; then
if [ -n "$IMAGE" ] && type 'platform_pre_upgrade' >/dev/null 2>/dev/null; then
- IS_PRE_UPGRADE=1 platform_pre_upgrade "$IMAGE"
-
- # Needs to be unset again because of busybox weirdness ...
- IS_PRE_UPGRADE=
+ platform_pre_upgrade "$IMAGE"
fi
if [ -n "$(rootfs_type)" ]; then