From f696080a3e32ba340cc4c5c70e39eb8e8857da89 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 7 Mar 2016 14:39:18 +0300 Subject: [PATCH] Pass parameters to scripts through environment variables --- VERSION | 2 +- doc/client.texi | 9 +++++---- doc/glossary.texi | 2 ++ doc/news.ru.texi | 7 +++++++ doc/news.texi | 7 +++++++ doc/scripts.texi | 17 ++++++++++++++++ doc/server.texi | 6 +++--- .../govpn/cmd/govpn-client/main.go | 2 +- .../govpn/cmd/govpn-client/tcp.go | 2 +- .../govpn/cmd/govpn-client/udp.go | 2 +- .../govpn/cmd/govpn-server/common.go | 4 ++-- .../govpn/cmd/govpn-server/main.go | 1 + .../govpn/cmd/govpn-server/tcp.go | 2 +- .../govpn/cmd/govpn-server/udp.go | 2 +- src/cypherpunks.ru/govpn/common.go | 10 ++++++++-- utils/addroute.sh | 20 +++++++++---------- 16 files changed, 68 insertions(+), 27 deletions(-) create mode 100644 doc/scripts.texi diff --git a/VERSION b/VERSION index 2df33d7..760606e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.6 +5.7 diff --git a/doc/client.texi b/doc/client.texi index 5b0ae2b..b6d8aab 100644 --- a/doc/client.texi +++ b/doc/client.texi @@ -51,8 +51,9 @@ Set @ref{CPR} in KiB/sec. Enable @ref{Encless, encryptionless mode}. @item -up -Optional path to script that will be executed after connection is -established. Interface name will be given to it as a first argument. +Optional path to @ref{Scripts, script} that will be executed after +connection is established. Interface name will be given to it as a first +argument. @item -down Same as @option{-up} above, but it is executed when connection is lost, @@ -66,8 +67,8 @@ solicitation: @verbatim client% cat > up.sh <