From a3d5bf8d54d949c99d79df81069f160ce5eeea4d Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Thu, 26 Oct 2006 01:01:04 +0000
Subject: fix dropbear init script

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5295 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/dropbear/files/dropbear.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/dropbear/files/dropbear.init b/package/dropbear/files/dropbear.init
index a5822e4f2b..b928af65cc 100755
--- a/package/dropbear/files/dropbear.init
+++ b/package/dropbear/files/dropbear.init
@@ -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
 	  }
-- 
cgit v1.2.3