diff options
Diffstat (limited to 'net/amnezia-tools/files/amnezia.in')
-rw-r--r-- | net/amnezia-tools/files/amnezia.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/amnezia-tools/files/amnezia.in b/net/amnezia-tools/files/amnezia.in index 11a5daf89861..98010c013bdb 100644 --- a/net/amnezia-tools/files/amnezia.in +++ b/net/amnezia-tools/files/amnezia.in @@ -17,7 +17,7 @@ # (default: "if_amn", "" - no module) # # amnezia_confdirs (str): Directory to store the configuration files. -# (default: "/usr/local/etc/amnezia") +# (default: "%%ETCDIR%%") . /etc/rc.subr @@ -33,7 +33,6 @@ status_cmd="${name}_status" amnezia_start() { kmod=${amnezia_kmod:-if_amn} - ${amnezia_confdirs:+eval export AWG_QUICK_CONFIG_SEARCH_PATHS="$amnezia_confdirs"} ${amnezia_env:+eval export $amnezia_env} [ -n "${kmod}" ] && kldstat -q -n ${kmod} || kldload -n ${kmod} @@ -76,6 +75,8 @@ load_rc_config $name : ${amnezia_interfaces=""} : ${amnezia_env=""} : ${amnezia_kmod="if_amn"} -: ${amnezia_confdirs="/usr/local/etc/amnezia"} +: ${amnezia_confdirs="%%ETCDIR%%"} + +${amnezia_confdirs:+eval export AWG_QUICK_CONFIG_SEARCH_PATHS="$amnezia_confdirs"} run_rc_command "$1" |