* remove bogus comment about aborting the boot if ipsec.conf doesn't exist;

this hasn't really worked and is probably too messy to resolve...
This commit is contained in:
lukem 2000-07-17 13:10:54 +00:00
parent 3aacf9101a
commit 97d13d02c3
1 changed files with 10 additions and 9 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: ipsec,v 1.3 2000/06/14 03:24:16 itojun Exp $
# $NetBSD: ipsec,v 1.4 2000/07/17 13:10:54 lukem Exp $
#
# PROVIDE: ipsec
@ -11,6 +11,7 @@
. /etc/rc.subr
name="ipsec"
start_precmd="ipsec_prestart"
start_cmd="ipsec_start"
stop_precmd="checkyesno ipsec && [ -f /etc/ipsec.conf ]"
stop_cmd="ipsec_stop"
@ -21,17 +22,17 @@ extra_commands="reload"
ipsec_start()
{
if ! checkyesno ipsec; then
return 0
return 1
fi
# if /etc/ipsec.conf isn't readable, abort the boot rather
# than risk a security problem
#
if [ ! -f /etc/ipsec.conf ]; then
err 1 "/etc/ipsec.conf not readable; ipsec start aborted."
warn "/etc/ipsec.conf not readable; ipsec start aborted."
return 1
fi
# XXX should check if ipsec.conf is secure enough
#
return 0
}
ipsec_start()
{
echo "Installing ipsec manual keys/policies."
/sbin/setkey -f /etc/ipsec.conf
}