projects
/
openwrt
/
staging
/
wigyori.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21720f
)
mvebu: fix sysupgrade failure
author
Boris Krasnovskiy
<
[email protected]
>
Sun, 13 Oct 2024 00:01:57 +0000
(20:01 -0400)
committer
Robert Marko
<
[email protected]
>
Sun, 13 Oct 2024 12:18:21 +0000
(14:18 +0200)
Linksys devices do no pass $cmd at all.
Fixes: #16148
Fixes: 715634e6d144 ("base-files: upgrade: nand: use "cmd" argument for extracting command")
Signed-off-by: Boris Krasnovskiy <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/16690
Signed-off-by: Robert Marko <
[email protected]
>
package/base-files/files/lib/upgrade/nand.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/upgrade/nand.sh
b/package/base-files/files/lib/upgrade/nand.sh
index 9fa3cd2ddd40db2cdc45efd1e842d9268ca58ec5..ca302557c8ea0f566307171cf9d3a1ac906257db 100644
(file)
--- a/
package/base-files/files/lib/upgrade/nand.sh
+++ b/
package/base-files/files/lib/upgrade/nand.sh
@@
-300,7
+300,7
@@
nand_upgrade_fit() {
# Write images in the TAR file to MTD partitions and/or UBI volumes as required
nand_upgrade_tar() {
local tar_file="$1"
- local cmd="$
2
"
+ local cmd="$
{2:-cat}
"
local jffs2_markers="${CI_JFFS2_CLEAN_MARKERS:-0}"
# WARNING: This fails if tar contains more than one 'sysupgrade-*' directory.