diff options
-rw-r--r-- | security/ipsec-tools/files/racoon.sh.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/security/ipsec-tools/files/racoon.sh.in b/security/ipsec-tools/files/racoon.sh.in index 7940c2d765b6..8bbe2e826c6f 100644 --- a/security/ipsec-tools/files/racoon.sh.in +++ b/security/ipsec-tools/files/racoon.sh.in @@ -24,6 +24,8 @@ prefix=%%PREFIX%% [ -z "$racoon_enable" ] && racoon_enable="NO" # Disable by default #racoon_program="${prefix}/sbin/racoon" # Location of racoon #racoon_flags="" # Flags to racoon program +racoon_create_dirs=NO # Create $required_dirs (for + # /var mfs)? . %%RC_SUBR%% @@ -43,4 +45,7 @@ racoon_cleanup() { } load_rc_config $name +if [ "$1" = start ] && checkyesno "${name}_create_dirs"; then + /bin/mkdir -p $required_dirs +fi run_rc_command "$1" |