Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: bin/pluto_updown

Issue 6508016: vpn-manager: Add l2tp/ipsec vpn manager (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vpn-manager.git@master
Patch Set: tweak Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bin/pluto_updown
diff --git a/bin/pluto_updown b/bin/pluto_updown
new file mode 100644
index 0000000000000000000000000000000000000000..42e96a819745f78077c0316b5b4b93079d66e027
--- /dev/null
+++ b/bin/pluto_updown
@@ -0,0 +1,16 @@
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# The syslog tag for all logging we emit.
+TAG="$(basename $0)[$$]"
+
+log() {
+ logger -t "${TAG}" "$@"
+}
+
+log "Received PLUTO_VERB=$PLUTO_VERB for pid $IPSEC_MANAGER_PID"
petkov 2011/03/04 18:42:56 use {} around variables? is there a good reason to
kmixter1 2011/03/05 02:48:59 Originally I was going to use SIGUSR1 to notify IP
+
+if [ "$PLUTO_VERB" = "up-host" ]; then
+ touch /tmp/ipsec-up
petkov 2011/03/04 18:42:56 is this 3-space indent?
kmixter1 2011/03/05 02:48:59 Done.
+fi

Powered by Google App Engine
This is Rietveld 408576698