summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-26 20:33:51 +0300
committerDevaev Maxim <[email protected]>2021-04-26 20:33:51 +0300
commitc4f597338b764333df21b37aa75c29cd1a5a0258 (patch)
tree266569841f57d608e4e1cbb78d416894313a485d
parent44d926370e60922ef4846481426fd17c19aa1c49 (diff)
don't fail on iptables lock
-rw-r--r--configs/os/services/kvmd-otgnet.service2
-rw-r--r--kvmd/apps/__init__.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/configs/os/services/kvmd-otgnet.service b/configs/os/services/kvmd-otgnet.service
index 9ee278d5..3c124ed9 100644
--- a/configs/os/services/kvmd-otgnet.service
+++ b/configs/os/services/kvmd-otgnet.service
@@ -1,6 +1,8 @@
[Unit]
Description=Pi-KVM - OTG network service
After=kvmd-otg.service
+Wants=network-pre.target
+After=network-pre.target
[Service]
Type=oneshot
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index c807858f..1e54dfa3 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -529,7 +529,7 @@ def _get_config_scheme() -> Dict:
"allow_tcp": Option([], type=valid_ports_list),
"allow_udp": Option([67], type=valid_ports_list),
"forward_iface": Option("", type=valid_stripped_string),
- "iptables_cmd": Option(["/usr/bin/iptables"], type=valid_command),
+ "iptables_cmd": Option(["/usr/bin/iptables", "--wait=5"], type=valid_command),
},
"commands": {