2010-01-26 01:11:17 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
with_fo_pivot() {
|
|
|
|
# switch back to squashfs (temporarily)
|
|
|
|
# and park the ramdisk ontop of /tmp/root
|
|
|
|
pivot /rom /mnt
|
|
|
|
mount -o move /mnt /tmp/root
|
|
|
|
|
2010-03-22 01:16:50 +08:00
|
|
|
# /overlay is the overlay
|
2010-01-26 01:11:17 +08:00
|
|
|
# /rom is the readonly
|
2010-03-22 01:16:50 +08:00
|
|
|
fopivot /overlay /rom
|
2010-01-26 01:11:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add switch2jffs with_fo_pivot
|