Signed-off-by: Matthias Schiffer <mschif...@universe-factory.net> --- net/quicktun/files/quicktun.init | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/net/quicktun/files/quicktun.init b/net/quicktun/files/quicktun.init index ae7bdd6..82caa26 100644 --- a/net/quicktun/files/quicktun.init +++ b/net/quicktun/files/quicktun.init @@ -60,12 +60,14 @@ start_service() { eval env $OPTS "$SSD" -q -b -p "$PID" -m -x "$BIN" -S - sleep 1 + while ! ifconfig "$interface" >/dev/null 2>&1; do + if ! $SSD -t -q -p $PID -x $BIN -K; then + echo "$s: daemon startup failed" + return 1 + fi - if ! ifconfig "$interface" >/dev/null 2>&1; then - echo "$s: daemon startup failed" - return 1 - fi + sleep 1 + done config_get up "$s" up [ -n "$up" ] && sh -c "$up" - "$interface"
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel