aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/base-files/lib/upgrade/.svn
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/adm5120/base-files/lib/upgrade/.svn')
-rw-r--r--target/linux/adm5120/base-files/lib/upgrade/.svn/entries62
-rw-r--r--target/linux/adm5120/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base44
2 files changed, 106 insertions, 0 deletions
diff --git a/target/linux/adm5120/base-files/lib/upgrade/.svn/entries b/target/linux/adm5120/base-files/lib/upgrade/.svn/entries
new file mode 100644
index 0000000..667ef14
--- /dev/null
+++ b/target/linux/adm5120/base-files/lib/upgrade/.svn/entries
@@ -0,0 +1,62 @@
+10
+
+dir
+36060
+svn://svn.openwrt.org/openwrt/trunk/target/linux/adm5120/base-files/lib/upgrade
+svn://svn.openwrt.org/openwrt
+
+
+
+2011-03-21T16:52:14.042971Z
+26257
+thepeople
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+3c298f89-4303-0410-b956-a3cf2f4a3e73
+
+platform.sh
+file
+
+
+
+
+2013-03-17T12:12:30.000000Z
+bd1fe2af3a60bdac0e6eb241896d02c2
+2011-03-21T16:52:14.042971Z
+26257
+thepeople
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+732
+
diff --git a/target/linux/adm5120/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/adm5120/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base
new file mode 100644
index 0000000..f067089
--- /dev/null
+++ b/target/linux/adm5120/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base
@@ -0,0 +1,44 @@
+#
+# Copyright (C) 2009-2010 OpenWrt.org
+#
+
+. /lib/adm5120.sh
+
+PART_NAME="firmware"
+RAMFS_COPY_DATA=/lib/adm5120.sh
+
+platform_check_image() {
+ local magic="$(get_magic_word "$1")"
+
+ [ "$ARGC" -gt 1 ] && return 1
+
+ case "$board_name" in
+ "ZyXEL"*|"Compex WP54 family")
+ # .trx files
+ [ "$magic" != "4844" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
+ *)
+ ;;
+ esac
+
+ echo "Sysupgrade is not yet supported on $board_name."
+ return 1
+}
+
+platform_do_upgrade() {
+ PART_NAME="$sys_mtd_part"
+ default_do_upgrade "$ARGV"
+}
+
+disable_watchdog() {
+ killall watchdog
+ ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
+ echo 'Could not disable watchdog'
+ return 1
+ }
+}
+append sysupgrade_pre_upgrade disable_watchdog