diff options
Diffstat (limited to 'target/linux/ppc40x/base-files/lib/upgrade')
3 files changed, 138 insertions, 0 deletions
diff --git a/target/linux/ppc40x/base-files/lib/upgrade/.svn/entries b/target/linux/ppc40x/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..ff46fa0 --- /dev/null +++ b/target/linux/ppc40x/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/ppc40x/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2010-04-12T12:21:18.833986Z +20821 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:13:04.000000Z +8ab150cf788912225b910ae34688627b +2010-04-12T12:21:18.833986Z +20821 +juhosg + + + + + + + + + + + + + + + + + + + + + +571 + diff --git a/target/linux/ppc40x/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/ppc40x/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..ed08cab --- /dev/null +++ b/target/linux/ppc40x/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,38 @@ +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ppc40x.sh + +PART_NAME=firmware +RAMFS_COPY_DATA=/lib/ppc40x.sh + +platform_check_image() { + local board=$(ppc40x_board_name) + local magic="$(get_magic_word "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + case "$board" in + kilauea | openrb | magicbox) + [ "$magic" != "2705" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; + esac + + echo "Sysupgrade is not yet supported on $board." + return 1 +} + +platform_do_upgrade() { + local board=$(ppc40x_board_name) + + case "$board" in + *) + default_do_upgrade "$ARGV" + ;; + esac +} diff --git a/target/linux/ppc40x/base-files/lib/upgrade/platform.sh b/target/linux/ppc40x/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000..ed08cab --- /dev/null +++ b/target/linux/ppc40x/base-files/lib/upgrade/platform.sh @@ -0,0 +1,38 @@ +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ppc40x.sh + +PART_NAME=firmware +RAMFS_COPY_DATA=/lib/ppc40x.sh + +platform_check_image() { + local board=$(ppc40x_board_name) + local magic="$(get_magic_word "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + case "$board" in + kilauea | openrb | magicbox) + [ "$magic" != "2705" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; + esac + + echo "Sysupgrade is not yet supported on $board." + return 1 +} + +platform_do_upgrade() { + local board=$(ppc40x_board_name) + + case "$board" in + *) + default_do_upgrade "$ARGV" + ;; + esac +} |