disable entropy gathering in wlcompat-debug
[openwrt/svn-archive/archive.git] / package / base-files / ar7-2.4 / etc / init.d / S00adam2
1 #!/bin/sh /etc/rc.common
2 # ADAM2 patcher for Netgear DG834 and compatible
3 # Copyright (C) 2006 OpenWrt.org
4
5 start() {
6 MD5="$(md5sum /dev/mtdblock/0 | awk '{print $1}')"
7 [ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
8 mtd unlock adam2
9 /sbin/adam2patcher /dev/mtdblock/0
10 }
11 rm -f /etc/init.d/S00adam2 /sbin/adam2patcher >&- 2>&-
12 }