fix dropbear init script
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 26 Oct 2006 01:01:04 +0000 (01:01 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 26 Oct 2006 01:01:04 +0000 (01:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5295 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/dropbear/files/dropbear.init

index a5822e4..b928af6 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
          }