Guest User

Untitled

a guest
Jan 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. root@fritz:/etc# cat init.d/adam2
  2. #!/bin/sh /etc/rc.common
  3. # ADAM2 patcher for Netgear DG834 and compatible
  4. # Copyright (C) 2006 OpenWrt.org
  5.  
  6. START=00
  7. start() {
  8. MD5="$(md5sum /dev/mtdblock0 | awk '{print $1}')"
  9. [ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
  10. mtd unlock adam2
  11. /sbin/adam2patcher /dev/mtdblock0
  12. }
  13. rm -f /etc/rc.d/S${START}adam2 /etc/init.d/adam2 /sbin/adam2patcher >&- 2>&-
  14. }
Add Comment
Please, Sign In to add comment