summaryrefslogtreecommitdiff
path: root/target/linux/oxnas
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-09-24 09:18:47 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-09-24 09:18:47 +0000
commita25fbb5c9a93ba7cb2d8293a91c5b51cf6d8cd71 (patch)
treef25a41955f01a247456b43a6f16a2ea85269ac1c /target/linux/oxnas
parentb976097bc6c62cf73c8106b6769ef6ac35403a7d (diff)
downloadmtk-20170518-a25fbb5c9a93ba7cb2d8293a91c5b51cf6d8cd71.zip
mtk-20170518-a25fbb5c9a93ba7cb2d8293a91c5b51cf6d8cd71.tar.gz
mtk-20170518-a25fbb5c9a93ba7cb2d8293a91c5b51cf6d8cd71.tar.bz2
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> SVN-Revision: 47038
Diffstat (limited to 'target/linux/oxnas')
-rw-r--r--target/linux/oxnas/base-files/lib/upgrade/platform.sh9
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 8591c7d..a43391c 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' ) && {