summaryrefslogtreecommitdiffstats
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
commit06edafd079348f84ce58807f70c1cff428a18934 (patch)
tree0c79c0dad8e3320520bb14f6b14536afd5ae38b7 /target/linux/ramips/base-files/lib/upgrade
parentd1a253a2fdc0afce1998e82dacece9a26dbe569e (diff)
downloadmaster-31e0f0ae-06edafd079348f84ce58807f70c1cff428a18934.tar.gz
master-31e0f0ae-06edafd079348f84ce58807f70c1cff428a18934.tar.bz2
master-31e0f0ae-06edafd079348f84ce58807f70c1cff428a18934.zip
ramips: add user space support for the DIR-645
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33844
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."