aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-04-23 23:33:14 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-05-29 23:50:33 +0200
commitb2adb9a7b50fd4a887b22facf6795d71a2629397 (patch)
tree1872f0d8e9a805bab29a38975524eee6787927ae /package/base-files/files/sbin
parent218af1957ecd8dd9732a74b2f263fe87ff318d4e (diff)
downloadupstream-b2adb9a7b50fd4a887b22facf6795d71a2629397.tar.gz
upstream-b2adb9a7b50fd4a887b22facf6795d71a2629397.tar.bz2
upstream-b2adb9a7b50fd4a887b22facf6795d71a2629397.zip
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 <mschiffer@universe-factory.net>
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/sysupgrade2
1 files changed, 0 insertions, 2 deletions
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