dropbear: add respawn param in case dropbear crashes
[openwrt/staging/wigyori.git] / package / network / services / dropbear / files / dropbear.init
index 01d88afd17d563acf4ffc7580133e69e9194e507..03745c995b23c691b6de8a3b82893fa1b339d483 100755 (executable)
@@ -79,6 +79,7 @@ dropbear_instance()
        [ "${IdleTimeout}" -ne 0 ] && procd_append_param command -I "${IdleTimeout}"
        [ "${SSHKeepAlive}" -ne 0 ] && procd_append_param command -K "${SSHKeepAlive}"
        [ "${mdns}" -ne 0 ] && procd_add_mdns "ssh" "tcp" "$Port" "daemon=dropbear"
+       procd_set_param respawn
        procd_close_instance
 }