linux/brcm47xx: fix an initialization issue on 2.6.36 kernel
[openwrt.git] / target / linux / ar7 / base-files / etc / init.d / adam2
1 #!/bin/sh /etc/rc.common
2 # ADAM2 patcher for Netgear DG834 and compatible
3 # Copyright (C) 2006 OpenWrt.org
4
5 START=00
6 start() {
7 MD5="$(md5sum /dev/mtdblock0 | awk '{print $1}')"
8 [ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
9 mtd unlock adam2
10 /sbin/adam2patcher /dev/mtdblock0
11 }
12 rm -f /etc/rc.d/S${START}adam2 /etc/init.d/adam2 /sbin/adam2patcher >&- 2>&-
13 }
This page took 0.050188 seconds and 5 git commands to generate.