mirror of https://github.com/hak5/openwrt-owl.git
parent
5eb30e636d
commit
bd65c8b91a
|
@ -2,7 +2,7 @@
|
|||
# $Id$
|
||||
. /etc/functions.sh
|
||||
|
||||
partname="OpenWrt"
|
||||
partname="rootfs_data"
|
||||
mtdpart="$(find_mtd_part $partname)"
|
||||
|
||||
rom=$(awk '/squashfs/ {print $2}' /proc/mounts)
|
||||
|
|
|
@ -19,7 +19,7 @@ if [ "$1" != "failsafe" ]; then
|
|||
is_dirty
|
||||
[ $? != 0 ] && {
|
||||
echo "switching to jffs2"
|
||||
mount $(find_mtd_part OpenWrt) /jffs -t jffs2
|
||||
mount $(find_mtd_part rootfs_data) /jffs -t jffs2
|
||||
fopivot /jffs /rom
|
||||
} || {
|
||||
echo "jffs2 not ready yet; using ramdisk"
|
||||
|
|
|
@ -158,7 +158,7 @@ static struct mtd_partition bcm947xx_parts[] = {
|
|||
{ name: "linux", offset: 0, size: 0, },
|
||||
{ name: "rootfs", offset: 0, size: 0, },
|
||||
{ name: "nvram", offset: 0, size: 0, },
|
||||
{ name: "OpenWrt", offset: 0, size: 0, },
|
||||
{ name: "rootfs_data", offset: 0, size: 0, },
|
||||
{ name: NULL, },
|
||||
};
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ static struct mtd_partition bcm947xx_parts[] = {
|
|||
{ name: "linux", offset: 0, size: 0, },
|
||||
{ name: "rootfs", offset: 0, size: 0, },
|
||||
{ name: "nvram", offset: 0, size: 0, },
|
||||
{ name: "OpenWrt", offset: 0, size: 0, },
|
||||
{ name: "rootfs_data", offset: 0, size: 0, },
|
||||
{ name: NULL, },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue