#!/sbin/openrc-run
# OpenRC service unit file to block all traffic during early boot.
# This is required since almost no distributions use a `network-pre.target`,
# which implies it's difficult to ensure that the daemon will start and block
# traffic before any network configuration will be applied.

depend() {
    before mullvad-daemon
}

name=$RC_SVCNAME
description="Mullvad early boot network blocker"
command="/usr/bin/mullvad-daemon"
command_args="--initialize-early-boot-firewall"
