1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- 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)
This commit is contained in:
Beech Rintoul 2008-07-02 04:19:30 +00:00
parent 273b762587
commit fffceacc53
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216117

View File

@ -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"