comparison files/fwireguard.in @ 473:c3125616d0ec

Make the configuration directory of fwireguard configurable
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 26 Aug 2024 17:22:26 +0200
parents 692c6357ce39
children 24129dd789f0
comparison
equal deleted inserted replaced
472:692c6357ce39 473:c3125616d0ec
33 33
34 load_rc_config $name 34 load_rc_config $name
35 35
36 : ${fwireguard_enable:="NO"} 36 : ${fwireguard_enable:="NO"}
37 : ${fwireguard_wait="2s"} 37 : ${fwireguard_wait="2s"}
38 : ${fwireguard_configdir:="%%PREFIX%%/etc/fwireguard"} 38 : ${fwireguard_configdir:="%%FWIREGUARD_ETCDIR%%"}
39 : ${fwireguard_interfaces="AUTO"} 39 : ${fwireguard_interfaces="AUTO"}
40 40
41 41
42 # Automatically expand to the interface names if needed 42 # Automatically expand to the interface names if needed
43 [ "${fwireguard_interfaces}" = "AUTO" ] && fwireguard_interfaces="$(/sbin/ifconfig -g wg)" 43 [ "${fwireguard_interfaces}" = "AUTO" ] && fwireguard_interfaces="$(/sbin/ifconfig -g wg)"