From b2adb9a7b50fd4a887b22facf6795d71a2629397 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 23 Apr 2017 23:33:14 +0200 Subject: base-files: sysupgrade cleanup Some functions only used by stage2 are moved there from common.sh. One piece that could still use more cleanup is platform_pre_upgrade: many targets reference files from there are aren't available in the ramfs, so we need to evaluate it before the switch; conversely, flash writes happen in that function on some targets. Targets that do the latter should be fixed eventually to use platform_do_upgrade for that purpose. Signed-off-by: Matthias Schiffer --- package/base-files/files/sbin/sysupgrade | 2 -- 1 file changed, 2 deletions(-) (limited to 'package/base-files/files/sbin') diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 2d67371ef7..200a0e520b 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -1,7 +1,5 @@ #!/bin/sh -[ "$1" = "nand" ] && exec /lib/upgrade/stage2 "$2" "$3" - . /lib/functions.sh . /lib/functions/system.sh -- cgit v1.2.3