From a25fbb5c9a93ba7cb2d8293a91c5b51cf6d8cd71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 24 Sep 2015 09:18:47 +0000 Subject: [PATCH] oxnas: drop some unused sysupgrade code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Daniel Golle SVN-Revision: 47038 --- target/linux/oxnas/base-files/lib/upgrade/platform.sh | 9 --------- 1 file changed, 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' ) && { -- 2.25.1