diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/avr32/base-files/lib | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'target/linux/avr32/base-files/lib')
5 files changed, 154 insertions, 0 deletions
diff --git a/target/linux/avr32/base-files/lib/.svn/entries b/target/linux/avr32/base-files/lib/.svn/entries new file mode 100644 index 0000000..bb62a41 --- /dev/null +++ b/target/linux/avr32/base-files/lib/.svn/entries @@ -0,0 +1,31 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/lib +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:27.006332Z +35982 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +upgrade +dir + diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/entries b/target/linux/avr32/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..6896697 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/avr32/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2013-03-12T13:28:27.006332Z +35982 +juhosg + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:12:22.000000Z +a2e92c3500824a13adf40aeb3b239ec4 +2013-03-12T13:28:27.006332Z +35982 +juhosg +has-props + + + + + + + + + + + + + + + + + + + + +436 + diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base b/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base @@ -0,0 +1,5 @@ +K 14 +svn:executable +V 1 +* +END diff --git a/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..00ad863 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,28 @@ +# +# Copyright (C) 2013 OpenWrt.org +# + +PART_NAME=firmware + +platform_check_image() { + local magic="$(get_magic_long "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + [ "$magic" != "27051956" ] && { + echo "Invalid image type." + return 1 + } + + return 0 +} + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} + +append sysupgrade_pre_upgrade disable_watchdog diff --git a/target/linux/avr32/base-files/lib/upgrade/platform.sh b/target/linux/avr32/base-files/lib/upgrade/platform.sh new file mode 100755 index 0000000..00ad863 --- /dev/null +++ b/target/linux/avr32/base-files/lib/upgrade/platform.sh @@ -0,0 +1,28 @@ +# +# Copyright (C) 2013 OpenWrt.org +# + +PART_NAME=firmware + +platform_check_image() { + local magic="$(get_magic_long "$1")" + + [ "$ARGC" -gt 1 ] && return 1 + + [ "$magic" != "27051956" ] && { + echo "Invalid image type." + return 1 + } + + return 0 +} + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} + +append sysupgrade_pre_upgrade disable_watchdog |