let ipkg fail when a package file to be installed is not found
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / base-files / files / ar7-2.4 / etc / init.d / S00adam2
1 #!/bin/sh
2 # ADAM2 patcher for Netgear DG834 and compatible
3 MD5="$(md5sum /dev/mtdblock/0 | awk '{print $1}')"
4 [ "$MD5" = "0530bfdf00ec155f4182afd70da028c1" ] && {
5 mtd unlock adam2
6 /sbin/adam2patcher /dev/mtdblock/0
7 }
8 rm -f /etc/init.d/S00adam2 /sbin/adam2patcher >&- 2>&-