projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97e54a1
)
fix partition issue with x86, leveraging the default size on the second partition...
author
Tim Yardley
<lst@openwrt.org>
Wed, 25 Oct 2006 23:51:48 +0000
(23:51 +0000)
committer
Tim Yardley
<lst@openwrt.org>
Wed, 25 Oct 2006 23:51:48 +0000
(23:51 +0000)
SVN-Revision: 5293
target/image/x86/gen_image.sh
patch
|
blob
|
history
diff --git
a/target/image/x86/gen_image.sh
b/target/image/x86/gen_image.sh
index 95be6cc8ef2403878f73ef234ffa8ad952097e2f..21deeee6acdecd5e942b438c575e01c23eae0863 100755
(executable)
--- a/
target/image/x86/gen_image.sh
+++ b/
target/image/x86/gen_image.sh
@@
-2,8
+2,8
@@
# Copyright (C) 2006 OpenWrt.org
[ $# == 5 ] || {
# Copyright (C) 2006 OpenWrt.org
[ $# == 5 ] || {
-
echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>"
-
exit 1
+ echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>"
+ exit 1
}
file="$1"
}
file="$1"
@@
-22,20
+22,20
@@
n
p
1
p
1
-+$
{part1s}M
++$
(($part1s * 1024))K
n
p
2
n
p
2
-+${part2s}M
+
w
q
EOF
block() {
w
q
EOF
block() {
-
echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" '
+ echo -e 'p\nq' | fdisk -u -C $cyl -H $head -S $sect "$file" | awk -v file="$file$1" -v n="$(($2 + 2))" '
$1 == file {
$1 == file {
-
print $n * 512
+ print $n * 512
}'
}
}'
}