diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-12-06 18:31:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-12-06 18:31:28 +0000 |
commit | 63994b8f50ca94e0885ed9a00c29eaeeda7c36fe (patch) | |
tree | bf0a2663a31ed16a9ae7550e05818f77f6d20177 /target/linux/rb532-2.6/base-files | |
parent | e1dc2f086daaa231d50a3852afad8642353add0f (diff) | |
download | upstream-63994b8f50ca94e0885ed9a00c29eaeeda7c36fe.tar.gz upstream-63994b8f50ca94e0885ed9a00c29eaeeda7c36fe.tar.bz2 upstream-63994b8f50ca94e0885ed9a00c29eaeeda7c36fe.zip |
replace the ugly rb532 cmdline hack with a cleaner one that does not depend on magic offsets
SVN-Revision: 5699
Diffstat (limited to 'target/linux/rb532-2.6/base-files')
-rwxr-xr-x | target/linux/rb532-2.6/base-files/sbin/cf2nand | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/target/linux/rb532-2.6/base-files/sbin/cf2nand b/target/linux/rb532-2.6/base-files/sbin/cf2nand index f8576beaa4..3f3352fd1b 100755 --- 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)" - 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}')" |