projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: read all 3 bytes in get_magic_vfat() at once
[openwrt/openwrt.git]
/
package
/
base-files
/
files
/
lib
/
upgrade
/
common.sh
diff --git
a/package/base-files/files/lib/upgrade/common.sh
b/package/base-files/files/lib/upgrade/common.sh
index e8a28f4138c5d3e3c1da071a3078a4514aba60fe..c28bae48a15c3f1a0a1dd0449b9d98d9c1eab959 100644
(file)
--- a/
package/base-files/files/lib/upgrade/common.sh
+++ b/
package/base-files/files/lib/upgrade/common.sh
@@
-130,7
+130,7
@@
get_magic_gpt() {
}
get_magic_vfat() {
- (get_image "$@" | dd bs=
1 count=3 skip=54
) 2>/dev/null
+ (get_image "$@" | dd bs=
3 count=1 skip=18
) 2>/dev/null
}
get_magic_fat32() {