Wip install scripts

This commit is contained in:
Joakim Hulthe committed 2026-04-23 10:23:16 +02:00
1 parent 31152057d6
commit 53e97a6dc2
4 files changed
+11 -5

No files matched your search

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -eu
echo "mullvad-systemd post-install"
# Are we running systemd?
if which systemctl &> /dev/null && systemctl is-system-running | grep -vq offline &> /dev/null; then
# Does `mullvad-daemon.service` exist?
if systemctl list-unit-files mullvad-daemon.service &> /dev/null; then
systemctl enable "/usr/lib/systemd/system/mullvad-daemon.service"
systemctl start mullvad-daemon.service || echo "Failed to start mullvad-daemon.service"
systemctl enable "/usr/lib/systemd/system/mullvad-early-boot-blocking.service"
fi
fi