diff options
author | dillon <dillon@FreeBSD.org> | 2000-05-16 06:52:11 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-05-16 06:52:11 +0000 |
commit | 78844f73606f87da0621ddf0817f927ccffc3cd3 (patch) | |
tree | 02f24b4cb56718136703bc40371df158c6020512 /etc/network.subr | |
parent | 5c271ae7a08daabeaa99751e6f352ca12798a9ae (diff) | |
download | FreeBSD-src-78844f73606f87da0621ddf0817f927ccffc3cd3.zip FreeBSD-src-78844f73606f87da0621ddf0817f927ccffc3cd3.tar.gz |
Add ipsec_enable and ipsec_file options to run IPSEC's setkey program
with the specified configuration file at the appropriate time.
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/network.subr b/etc/network.subr index e37d25f..fc7cdd0 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -352,6 +352,17 @@ network_pass1() { esac echo '.' + case ${ipsec_enable} in + [Yy][Ee][Ss]) + if [ -f ${ipsec_file} ]; then + echo ' ipsec: enabled' + setkey -f ${ipsec_file} + else + echo ' ipsec: file not found' + fi + ;; + esac + echo -n 'routing daemons:' case ${router_enable} in [Yy][Ee][Ss]) |