diff options
Diffstat (limited to 'target/linux/lantiq/base-files/lib/upgrade')
4 files changed, 117 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/lib/upgrade/.svn/entries b/target/linux/lantiq/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..eaa6df6 --- /dev/null +++ b/target/linux/lantiq/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/lantiq/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2010-12-12T22:57:16.047709Z +24526 +blogic + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:12:42.000000Z +1119d2547aae3c701a685b007304f0fb +2010-12-12T22:57:16.047709Z +24526 +blogic +has-props + + + + + + + + + + + + + + + + + + + + +434 + diff --git a/target/linux/lantiq/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base b/target/linux/lantiq/base-files/lib/upgrade/.svn/prop-base/platform.sh.svn-base new file mode 100644 index 0000000..869ac71 --- /dev/null +++ b/target/linux/lantiq/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/lantiq/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/lantiq/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..247ba1a --- /dev/null +++ b/target/linux/lantiq/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,25 @@ +PART_NAME=linux + +platform_check_image() { + [ "$ARGC" -gt 1 ] && return 1 + + case "$(get_magic_word "$1")" in + # .trx files + 2705) return 0;; + *) + echo "Invalid image type" + return 1 + ;; + esac +} + +# use default for platform_do_upgrade() + +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/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh new file mode 100755 index 0000000..247ba1a --- /dev/null +++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh @@ -0,0 +1,25 @@ +PART_NAME=linux + +platform_check_image() { + [ "$ARGC" -gt 1 ] && return 1 + + case "$(get_magic_word "$1")" in + # .trx files + 2705) return 0;; + *) + echo "Invalid image type" + return 1 + ;; + esac +} + +# use default for platform_do_upgrade() + +disable_watchdog() { + killall watchdog + ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { + echo 'Could not disable watchdog' + return 1 + } +} +append sysupgrade_pre_upgrade disable_watchdog |