projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace the ugly rb532 cmdline hack with a cleaner one that does not depend on magic...
[openwrt-10.03/.git]
/
target
/
linux
/
rb532-2.6
/
base-files
/
sbin
/
cf2nand
diff --git
a/target/linux/rb532-2.6/base-files/sbin/cf2nand
b/target/linux/rb532-2.6/base-files/sbin/cf2nand
index f8576beaa4ec692f28286d4e4d322f8828ee3713..3f3352fd1b566503215f6a283ced1dd22cefb664 100755
(executable)
--- a/
target/linux/rb532-2.6/base-files/sbin/cf2nand
+++ b/
target/linux/rb532-2.6/base-files/sbin/cf2nand
@@
-6,13
+6,8
@@
copy_kernel() {
local output="$2"
local cmdline="$3"
size="$(echo -n "$cmdline" | wc -c)"
local output="$2"
local cmdline="$3"
size="$(echo -n "$cmdline" | wc -c)"
- dd if="$input" bs=3M count=1 | (
- dd bs=4112 count=1
- echo -n "$cmdline"
- dd if=/dev/zero bs="$((512 - $size))" count=1
- dd bs=512 count=1 of=/dev/null
- cat
- ) > "$output"
+ dd if="$input" bs=3M count=1 > "$output"
+ /sbin/patch-cmdline "$output" "$cmdline"
}
fstype="$(mount | grep ' / ' | awk '{print $5}')"
}
fstype="$(mount | grep ' / ' | awk '{print $5}')"