projects
/
openwrt
/
staging
/
mkresin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base-files: fix several bashisms
[openwrt/staging/mkresin.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 9e9144cba4e9bbe0d95b77b5b3bec716e1403fb0..8ee07494a38af524c017ec1ad9ae2b7a9b773f74 100644
(file)
--- a/
package/base-files/files/lib/upgrade/common.sh
+++ b/
package/base-files/files/lib/upgrade/common.sh
@@
-164,7
+164,7
@@
export_partdevice() {
}
hex_le32_to_cpu() {
- [ "$(echo 01 | hexdump -v -n 2 -e '/2 "%x"')" =
=
"3031" ] && {
+ [ "$(echo 01 | hexdump -v -n 2 -e '/2 "%x"')" = "3031" ] && {
echo "${1:0:2}${1:8:2}${1:6:2}${1:4:2}${1:2:2}"
return
}