diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-09-24 09:18:47 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-09-24 09:18:47 +0000 |
commit | edf1b0efa85bd3e2d45cddf02b08421764b5c3c4 (patch) | |
tree | 0456b48af4a4b73765d1604d88c01b3ef30a20c6 /target/linux/oxnas/base-files | |
parent | 1e2157858da47d71f2b9e8200c4a78be58791eb7 (diff) | |
download | master-187ad058-edf1b0efa85bd3e2d45cddf02b08421764b5c3c4.tar.gz master-187ad058-edf1b0efa85bd3e2d45cddf02b08421764b5c3c4.tar.bz2 master-187ad058-edf1b0efa85bd3e2d45cddf02b08421764b5c3c4.zip |
oxnas: drop some unused sysupgrade code
First of all platform_do_upgrade_phase2 doesn't seem to be defined
anywhere. Other than that platform_do_upgrade is not likely to be ever
called. There is a call to nand_do_platform_check which triggers
nand_upgrade_stage1 call with "exit 0" in it.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47038 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/oxnas/base-files')
-rw-r--r-- | target/linux/oxnas/base-files/lib/upgrade/platform.sh | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/target/linux/oxnas/base-files/lib/upgrade/platform.sh b/target/linux/oxnas/base-files/lib/upgrade/platform.sh index 8591c7de67..a43391cbbd 100644 --- a/target/linux/oxnas/base-files/lib/upgrade/platform.sh +++ b/target/linux/oxnas/base-files/lib/upgrade/platform.sh @@ -15,15 +15,6 @@ platform_check_image() { return $? } -platform_do_upgrade() { - if [ $$ -ne 1 ]; then - echo "not PID 1, upgrade aborted." - return 1; - fi - platform_do_upgrade_phase2 "$1" "$CONF_TAR" "$SAVE_CONFIG" -} - - disable_watchdog() { killall watchdog ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { |