aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/upgrade
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-10-18 07:23:03 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-10-18 07:23:03 +0000
commita876a2fff553e669b6424af1febe8eed052a3a56 (patch)
treeafe566e2eecb2985c30e40af0bc6e922df994df8 /target/linux/ramips/base-files/lib/upgrade
parent06c0cd5823dddfa3a1af7d40c4599381504e6dd9 (diff)
downloadmaster-187ad058-a876a2fff553e669b6424af1febe8eed052a3a56.tar.gz
master-187ad058-a876a2fff553e669b6424af1febe8eed052a3a56.tar.bz2
master-187ad058-a876a2fff553e669b6424af1febe8eed052a3a56.zip
ramips: add user space support for the DIR-645
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib/upgrade')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 2857599d0b..ba04a4a4aa 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -57,6 +57,13 @@ platform_check_image() {
}
return 0
;;
+ dir-645)
+ [ "$magic" != "5ea3a417" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
esac
echo "Sysupgrade is not yet supported on $board."