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 |