Remove dead code

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-10-28 16:47:54 +02:00
parent 22dc4efdd9
commit 00cd75cf61
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -16,16 +16,6 @@ def check_ping_reachable(ip):
return False
def check_service_active(service):
try:
subprocess.check_call(['systemctl', 'status', service],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
return True
except subprocess.CalledProcessError:
return False
def main():
config = yaml.load(
open(Path('~/.config/i3-vpn.json').expanduser()),