fix dropbear init script
authorFelix Fietkau <nbd@openwrt.org>
Thu, 26 Oct 2006 01:01:04 +0000 (01:01 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 26 Oct 2006 01:01:04 +0000 (01:01 +0000)
SVN-Revision: 5295

package/dropbear/files/dropbear.init

index a5822e4f2bc886062d305efe5ac546009faba4c5..b928af65ccf2e94951ef268c2f584ab530d3b0ac 100755 (executable)
@@ -9,7 +9,7 @@ start() {
            # generate missing keys
            mkdir -p /etc/dropbear
            [ -x /usr/bin/dropbearkey ] && {
-             /usr/bin/dropbearkey -t $type -f $key 2>&- >&- && exec $0 $*
+             /usr/bin/dropbearkey -t $type -f $key 2>&- >&- && exec /etc/rc.common "$initscript" start
            } &
            exit 0
          }