sane-vpn: lint
This commit is contained in:
parent
6365bb7594
commit
59e4256dd8
|
@ -24,12 +24,13 @@ vpns=()
|
||||||
defaultVpn=
|
defaultVpn=
|
||||||
|
|
||||||
# loaded from a specific ~/.config/sane-vpn/vpns profile
|
# loaded from a specific ~/.config/sane-vpn/vpns profile
|
||||||
id=
|
addrV4=
|
||||||
fwmark=
|
|
||||||
prioMain=
|
|
||||||
prioFwMark=
|
|
||||||
bridgeDevice=
|
|
||||||
dns=()
|
dns=()
|
||||||
|
fwmark=
|
||||||
|
id=
|
||||||
|
name=
|
||||||
|
priorityFwMark=
|
||||||
|
priorityMain=
|
||||||
|
|
||||||
debug() {
|
debug() {
|
||||||
if [ -n "$SANE_VPN_DEBUG" ]; then
|
if [ -n "$SANE_VPN_DEBUG" ]; then
|
||||||
|
@ -46,15 +47,7 @@ getVpns() {
|
||||||
|
|
||||||
# load a specific VPN profile, `"$1"`
|
# load a specific VPN profile, `"$1"`
|
||||||
sourceVpn() {
|
sourceVpn() {
|
||||||
# populates:
|
# populates: variables declared above
|
||||||
# - id
|
|
||||||
# - fwmark
|
|
||||||
# - prioMain
|
|
||||||
# - prioFwMark
|
|
||||||
# - bridgeDevice
|
|
||||||
# - addrV4
|
|
||||||
# - name
|
|
||||||
# - dns
|
|
||||||
debug "sourcing: ~/.config/sane-vpn/vpns/$1"
|
debug "sourcing: ~/.config/sane-vpn/vpns/$1"
|
||||||
# TODO: don't blindly source this, but parse explicitly as `K=V`
|
# TODO: don't blindly source this, but parse explicitly as `K=V`
|
||||||
source ~/.config/sane-vpn/vpns/$1
|
source ~/.config/sane-vpn/vpns/$1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user