1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-04 07:51:59 +03:00

fix partition issue with x86, leveraging the default size on the second partition (all of the remaining drive) in order to get around size differences

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5293 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
pavlov 2006-10-25 23:51:48 +00:00
parent 053826c1ef
commit 263c509529

View File

@ -2,8 +2,8 @@
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006 OpenWrt.org
[ $# == 5 ] || { [ $# == 5 ] || {
echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>" echo "SYNTAX: $0 <file> <kernel size> <kernel directory> <rootfs size> <rootfs image>"
exit 1 exit 1
} }
file="$1" file="$1"
@ -22,20 +22,20 @@ n
p p
1 1
+${part1s}M +$(($part1s * 1024))K
n n
p p
2 2
+${part2s}M
w w
q q
EOF EOF
block() { 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
}' }'
} }