diff mbox

[OpenWrt-Devel] procd: make nand_do_platform_check check image only

Message ID 1443087140-9893-1-git-send-email-zajec5@gmail.com
State Accepted
Delegated to: Rafał Miłecki
Headers show

Commit Message

Rafał Miłecki Sept. 24, 2015, 9:32 a.m. UTC
Recently all targets have been updated to call nand_do_upgrade directly.
It's not needed anymore to leave a magic /tmp/sysupgrade-nand-path mark
during image check.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
I'll wait a week or two before pushing it. Maybe it'll make someone test
it just in case :)
---
 package/system/procd/files/nand.sh | 3 ---
 1 file changed, 3 deletions(-)

Comments

John Crispin Sept. 24, 2015, 9:46 a.m. UTC | #1
On 24/09/2015 11:32, Rafał Miłecki wrote:
> Recently all targets have been updated to call nand_do_upgrade directly.
> It's not needed anymore to leave a magic /tmp/sysupgrade-nand-path mark
> during image check.
> 
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Acked-by: John Crispin <blogic@openwrt.org>


> ---
> I'll wait a week or two before pushing it. Maybe it'll make someone test
> it just in case :)
> ---
>  package/system/procd/files/nand.sh | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh
> index 0ed1b63..3b1c749 100644
> --- a/package/system/procd/files/nand.sh
> +++ b/package/system/procd/files/nand.sh
> @@ -348,9 +348,6 @@ nand_do_platform_check() {
>  		return 1
>  	}
>  
> -	echo -n $2 > /tmp/sysupgrade-nand-path
> -	cp /sbin/upgraded /tmp/
> -
>  	return 0
>  }
>  
>
diff mbox

Patch

diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh
index 0ed1b63..3b1c749 100644
--- a/package/system/procd/files/nand.sh
+++ b/package/system/procd/files/nand.sh
@@ -348,9 +348,6 @@  nand_do_platform_check() {
 		return 1
 	}
 
-	echo -n $2 > /tmp/sysupgrade-nand-path
-	cp /sbin/upgraded /tmp/
-
 	return 0
 }