projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uboot-envtools: Fix format of autogenerated sectors
[openwrt/openwrt.git]
/
package
/
boot
/
uboot-envtools
/
files
/
ipq40xx
diff --git
a/package/boot/uboot-envtools/files/ipq40xx
b/package/boot/uboot-envtools/files/ipq40xx
index e45e26dcc7f757b661ee036613277b80bd6f098e..823a33ca1b113de5ee74204a03e373e82ac70640 100644
(file)
--- a/
package/boot/uboot-envtools/files/ipq40xx
+++ b/
package/boot/uboot-envtools/files/ipq40xx
@@
-26,6
+26,7
@@
ubootenv_mtdinfo () {
fi
sectors=$(( $ubootenv_size / $mtd_erase ))
+ sectors=$(printf "0x%x" $sectors )
echo /dev/$mtd_dev 0x0 $ubootenv_size $mtd_erase $sectors
}