aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ppc40x/base-files
diff options
context:
space:
mode:
authorJames <>2013-03-17 12:16:37 +0000
committerJames <>2013-03-17 12:16:37 +0000
commit27b76ab0671089c47506615a796a261e993896a7 (patch)
tree61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/ppc40x/base-files
downloadtrunk-36060-master.tar.gz
trunk-36060-master.tar.bz2
trunk-36060-master.zip
Diffstat (limited to 'target/linux/ppc40x/base-files')
-rw-r--r--target/linux/ppc40x/base-files/.svn/entries31
-rw-r--r--target/linux/ppc40x/base-files/lib/.svn/entries65
-rw-r--r--target/linux/ppc40x/base-files/lib/.svn/prop-base/ppc40x.sh.svn-base5
-rw-r--r--target/linux/ppc40x/base-files/lib/.svn/text-base/ppc40x.sh.svn-base11
-rwxr-xr-xtarget/linux/ppc40x/base-files/lib/ppc40x.sh11
-rw-r--r--target/linux/ppc40x/base-files/lib/upgrade/.svn/entries62
-rw-r--r--target/linux/ppc40x/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base38
-rw-r--r--target/linux/ppc40x/base-files/lib/upgrade/platform.sh38
8 files changed, 261 insertions, 0 deletions
diff --git a/target/linux/ppc40x/base-files/.svn/entries b/target/linux/ppc40x/base-files/.svn/entries
new file mode 100644
index 0000000..4d0d65d
--- /dev/null
+++ b/target/linux/ppc40x/base-files/.svn/entries
@@ -0,0 +1,31 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/ppc40x/base-files
+svn://svn.openwrt.org/openwrt
+
+
+
+2010-04-12T12:21:18.833986Z
+20821
+juhosg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+lib
+dir
+
diff --git a/target/linux/ppc40x/base-files/lib/.svn/entries b/target/linux/ppc40x/base-files/lib/.svn/entries
new file mode 100644
index 0000000..ba92655
--- /dev/null
+++ b/target/linux/ppc40x/base-files/lib/.svn/entries
@@ -0,0 +1,65 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/ppc40x/base-files/lib
+svn://svn.openwrt.org/openwrt
+
+
+
+2010-04-12T12:21:18.833986Z
+20821
+juhosg
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+upgrade
+dir
+
+ppc40x.sh
+file
+
+
+
+
+2013-03-17T12:13:04.000000Z
+abe692d59e556cb019e9a292057cad37
+2010-04-12T12:21:18.833986Z
+20821
+juhosg
+has-props
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+173
+
diff --git a/target/linux/ppc40x/base-files/lib/.svn/prop-base/ppc40x.sh.svn-base b/target/linux/ppc40x/base-files/lib/.svn/prop-base/ppc40x.sh.svn-base
new file mode 100644
index 0000000..869ac71
--- /dev/null
+++ b/target/linux/ppc40x/base-files/lib/.svn/prop-base/ppc40x.sh.svn-base
@@ -0,0 +1,5 @@
+K 14
+svn:executable
+V 1
+*
+END
diff --git a/target/linux/ppc40x/base-files/lib/.svn/text-base/ppc40x.sh.svn-base b/target/linux/ppc40x/base-files/lib/.svn/text-base/ppc40x.sh.svn-base
new file mode 100644
index 0000000..8a6c487
--- /dev/null
+++ b/target/linux/ppc40x/base-files/lib/.svn/text-base/ppc40x.sh.svn-base
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+ppc40x_board_name() {
+ local model
+
+ model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
+ echo $model
+}
diff --git a/target/linux/ppc40x/base-files/lib/ppc40x.sh b/target/linux/ppc40x/base-files/lib/ppc40x.sh
new file mode 100755
index 0000000..8a6c487
--- /dev/null
+++ b/target/linux/ppc40x/base-files/lib/ppc40x.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# Copyright (C) 2010 OpenWrt.org
+#
+
+ppc40x_board_name() {
+ local model
+
+ model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
+ echo $model
+}
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
+}