adam2 371 B

12345678910111213
  1. #!/bin/sh /etc/rc.common
  2. # ADAM2 patcher for Netgear DG834 and compatible
  3. # Copyright (C) 2006 OpenWrt.org
  4. START=00
  5. start() {
  6. MD5="$(md5sum /dev/mtdblock0 | awk '{print $1}')"
  7. [ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
  8. mtd unlock adam2
  9. /sbin/adam2patcher /dev/mtdblock0
  10. }
  11. rm -f /etc/rc.d/S${START}adam2 /etc/init.d/adam2 /sbin/adam2patcher >&- 2>&-
  12. }