mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update IPsec startup and shutdown script
This commit is contained in:
parent
23882a1a92
commit
976aa03f8b
@ -24,7 +24,7 @@
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by the
|
||||
# Free Software Foundation; either version 2 of the License, or (at your
|
||||
# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
# option) any later version. See <https://www.gnu.org/licenses/gpl2.txt>.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
@ -71,17 +71,15 @@ fi
|
||||
|
||||
# where the private directory and the config files are
|
||||
IPSEC_CONF="${IPSEC_CONF:-/etc/ipsec.conf}"
|
||||
IPSEC_EXECDIR="${IPSEC_EXECDIR:-/usr/lib/ipsec}"
|
||||
IPSEC_EXECDIR="${IPSEC_EXECDIR:-/usr/libexec/ipsec}"
|
||||
IPSEC_SBINDIR="${IPSEC_SBINDIR:-/usr/sbin}"
|
||||
unset PLUTO_OPTIONS
|
||||
|
||||
rundir=/var/run/pluto
|
||||
rundir=/run/pluto
|
||||
plutopid=${rundir}/pluto.pid
|
||||
plutoctl=${rundir}/pluto.ctl
|
||||
lockdir=/var/lock/subsys
|
||||
lockfile=${lockdir}/ipsec
|
||||
ipsecversion=/proc/net/ipsec_version
|
||||
kamepfkey=/proc/net/pfkey
|
||||
|
||||
# /etc/resolv.conf related paths
|
||||
LIBRESWAN_RESOLV_CONF=${rundir}/libreswan-resolv-conf-backup
|
||||
@ -144,6 +142,9 @@ start() {
|
||||
rm -f ${lockfile}
|
||||
fi
|
||||
echo
|
||||
if [ -f /usr/libexec/ipsec/portexcludes ] ; then
|
||||
/usr/libexec/ipsec/portexcludes
|
||||
fi
|
||||
return ${RETVAL}
|
||||
}
|
||||
|
||||
@ -301,4 +302,4 @@ case "$1" in
|
||||
RETVAL=2
|
||||
esac
|
||||
|
||||
exit ${RETVAL}
|
||||
exit ${RETVAL}
|
||||
|
Loading…
x
Reference in New Issue
Block a user