fix dropbear init script
[openwrt-10.03/.git] / 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
          }