summaryrefslogtreecommitdiffstats
path: root/target/linux/package/base-files/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-12 06:00:38 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-02-12 06:00:38 +0000
commit2f3d65dabad91870035f50cd7dc5fcf1f33fd2be (patch)
treed604d47ed0783b1cb44ec9a1efb3c5cfb88fc203 /target/linux/package/base-files/files
parent54259a7a47ca4130a5ee7e8172ef4fdab819fd59 (diff)
add support for netgear dg834 and the almost identical sphairon jdr454wb: new images, automatic boot loader patcher, updated flash script (dlink.pl renamed to adam2flash.pl) - Thanks to Jonathan McDowell (Noodles)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3221 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/package/base-files/files')
-rwxr-xr-xtarget/linux/package/base-files/files/ar7-2.4/etc/init.d/S00adam28
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/package/base-files/files/ar7-2.4/etc/init.d/S00adam2 b/target/linux/package/base-files/files/ar7-2.4/etc/init.d/S00adam2
new file mode 100755
index 000000000..0ca4c0145
--- /dev/null
+++ b/target/linux/package/base-files/files/ar7-2.4/etc/init.d/S00adam2
@@ -0,0 +1,8 @@
+#!/bin/sh
+# ADAM2 patcher for Netgear DG834 and compatible
+MD5="$(md5sum /dev/mtdblock/0 | awk '{print $1}')"
+[ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
+ mtd unlock adam2
+ /sbin/adam2patcher /dev/mtdblock/0
+}
+rm -f /etc/init.d/S00adam2 /sbin/adam2patcher >&- 2>&-