Commit b7ad3367 authored by Mika Havela's avatar Mika Havela Committed by Natanael Copa

Adding SETKEY_OPTS parameter to init.d and conf.d files This helps users to...

Adding SETKEY_OPTS parameter to init.d and conf.d files This helps users to append e.g. '-k' option to the setkey command by modifying their /etc/conf.d/racoon file
parent 665a1bf8
......@@ -8,6 +8,7 @@
# for valid command-line options
RACOON_OPTS="-4"
SETKEY_OPTS=""
RACOON_CONF="/etc/racoon/racoon.conf"
RACOON_PSK_FILE="/etc/racoon/psk.txt"
......
......@@ -36,7 +36,7 @@ checkconfig() {
start() {
checkconfig || return 1
einfo "Loading ipsec policies from ${SETKEY_CONF}."
/usr/sbin/setkey -f ${SETKEY_CONF}
/usr/sbin/setkey ${SETKEY_OPTS} -f ${SETKEY_CONF}
if [ $? -eq 1 ] ; then
eerror "Error while loading ipsec policies"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment