Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetworkManager-l2tp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CeRiAl
NetworkManager-l2tp
Commits
83bebbc1
Commit
83bebbc1
authored
Mar 27, 2015
by
CeRiAl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply and remove nm-l2tp-startup-delay-948193.patch
parent
91ef48e8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
21 deletions
+3
-21
nm-l2tp-startup-delay-948193.patch
patches/nm-l2tp-startup-delay-948193.patch
+0
-21
nm-l2tp-service.c
src/nm-l2tp-service.c
+3
-0
No files found.
patches/nm-l2tp-startup-delay-948193.patch
deleted
100644 → 0
View file @
91ef48e8
The pluto daemon takes some time to initialize. It can't be used
immediately after start-up. Wait for one second before trying to
connect to it.
src/nm-l2tp-service.c | 3 +++
1 file changed, 3 insertions(+)
Index: NetworkManager-l2tp-0.9.8.7/src/nm-l2tp-service.c
===================================================================
--- NetworkManager-l2tp-0.9.8.7.orig/src/nm-l2tp-service.c
+++ NetworkManager-l2tp-0.9.8.7/src/nm-l2tp-service.c
@@ -903,6 +903,9 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin
"PATH=/usr/local/sbin:/usr/sbin:/sbin; export PATH;"
"[ \"x$defaultrouteaddr\" = \"x\" ] && ipsec setup restart");
+ /* Give pluto time to start up */
+ sleep(1);
+
sys += system("PATH=/usr/local/sbin:/usr/sbin:/sbin ipsec whack"
" --listen");
sprintf(cmd1,"test -e /var/run/pluto/ipsec.info && . /var/run/pluto/ipsec.info;"
src/nm-l2tp-service.c
View file @
83bebbc1
...
...
@@ -874,6 +874,9 @@ nm_l2tp_start_ipsec(NML2tpPlugin *plugin,
return
nm_l2tp_ipsec_error
(
error
,
"Could not restart the ipsec service."
);
}
/* Give pluto time to start up */
sleep
(
1
);
sys
=
system
(
PATH_PREFIX
" ipsec whack --listen"
);
if
(
sys
)
{
return
nm_l2tp_ipsec_error
(
error
,
"Could not talk to IPsec key exchange service."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment