mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
brcm47xx-2.6: fix squashfs image partitioning problem
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7224 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e7d7f7e2d8
commit
8b9bb09c2f
@ -335,10 +335,8 @@ init_mtd_partitions(struct mtd_info *mtd, size_t size)
|
||||
}
|
||||
|
||||
/* find and size rootfs */
|
||||
if (find_root(mtd,size,&bcm947xx_parts[2])==0) {
|
||||
bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset -
|
||||
bcm947xx_parts[3].size;
|
||||
}
|
||||
find_root(mtd,size,&bcm947xx_parts[2]);
|
||||
bcm947xx_parts[2].size = size - bcm947xx_parts[2].offset - bcm947xx_parts[3].size;
|
||||
|
||||
return bcm947xx_parts;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user