enable start-stop-daemon by default, i want to use this to clean up a few init script...
[openwrt/staging/wigyori.git] / target / linux / ar7-2.6 / base-files / default / 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 }