Files
hassio-addons/unpackerr/rootfs/90-vpn.sh
2024-03-13 10:53:53 +01:00

28 lines
599 B
Bash
Executable File

#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
set +e
VPN_PROVIDER="${VPN_PROVIDER:-null}"
case "$VPN_PROVIDER" in
"generic")
echo "" > etc/s6*/s6*/service-pia/run
echo "" > /etc/s6*/s6*/service-proton/run
;;
"pia")
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-proton/run
;;
"proton")
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-pia/run
;;
**)
echo "" > /etc/s6*/s6*/service-privoxy/run
echo "" > /etc/s6*/s6*/service-proton/run
echo "" > /etc/s6*/s6*/service-pia/run
;;
esac