The officially official Devuan Forum!

You are not logged in.

#1 Re: Desktop and Multimedia » Devuan and WireGuard / Mullvad VPN » 2021-12-29 16:32:09

Greetings!

Mullvad's philosophy is spot on: both accessible and permissive in exactly the sense a privacy application should be.

Please find here simpler SysVinit script which either runs the binary, hangs up, or employs devuan's init-functions to query the status.   

1 install Mullvad's .deb package
2 create this /etc/init.d/mullvad

#! /bin/sh 

### BEGIN INIT INFO
# Provides:             mullvad-daemon
# Required-Start:
# Required-Stop:
# Default-Start:        2 3 4 5
# Default-Stop:
# Short-Description:    Start and stop mullvad-daemon
# Description:          A simple init for Mullvad VPN
### END INIT INFO

. /lib/lsb/init-functions
name=${0##*/}
bin=/opt/Mullvad\ VPN/resources/mullvad-daemon

case "$1" in
        start)
                "$bin" &
                ;;
        stop)
                start-stop-daemon --stop --exec "$bin" --
                ;;
        status)
                status_of_proc "mullvad-daemon" "$name"
                ;;
          *)
                log_action_msg "Usage: $0 {start|stop|status}"
                ;;
esac
exit 0

3 update-rc.d mullvad defaults

The daemon will now run at startup. Configure wireguard or anything as a normal user with mullvad(1) client program.

All the best,

Board footer

Forum Software