diff options
Diffstat (limited to 'target/linux/x86/olpc/base-files/lib/upgrade/.svn')
-rw-r--r-- | target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries | 62 | ||||
-rw-r--r-- | target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base | 27 |
2 files changed, 89 insertions, 0 deletions
diff --git a/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..c00e749 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2007-10-28T21:20:48.722342Z +9457 +ryd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:12:36.000000Z +c4e755af6dabe9fd271e599924967dc6 +2007-10-28T21:20:48.722342Z +9457 +ryd + + + + + + + + + + + + + + + + + + + + + +662 + diff --git a/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..ffd0b93 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,27 @@ +platform_check_image() { + [ "$ARGC" -gt 1 ] && return 1 + + case "$(get_magic_word "$1")" in + 48eb) return 0;; + *) + echo "Invalid image type" + return 1 + ;; + esac +} + +platform_do_upgrade() { + get_image "$1" > /dev/hda + sync +} + +x86_prepare_ext2() { + # if we're running from ext2, we need to make sure that we have a mtd + # partition that points to the active rootfs partition. + # however this only matters if we actually need to preserve the config files + [ "$SAVE_CONFIG" -eq 1 ] && return 0 + grep rootfs /proc/mtd >/dev/null || { + echo /dev/hda2,65536,rootfs > /sys/module/block2mtd/parameters/block2mtd + } +} +append sysupgrade_pre_upgrade x86_prepare_ext2 |