diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2008-07-02 04:19:30 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2008-07-02 04:19:30 +0000 |
commit | fffceacc536aaf8848185d21bb93115a17483764 (patch) | |
tree | 4b8dd500cae89ae69fb2a054742b5c9d9032ab5f | |
parent | Update pkg-descr as well. (diff) |
- Fix: Have the racoon startup script [optionally] create its required dirs.
PR: ports/117128
Submitted by: John Hein <jhein@timing.com>
Approved by: VANHULLEBUS Yvan <vanhu@netasq.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=216117
-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" |