From 19eea3e96d45046c32b5788592bae0e763410d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Sun, 26 Nov 2017 12:44:13 +0000 Subject: [PATCH] Add a start section in glorytun-setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- systemd/glorytun-setup | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/systemd/glorytun-setup b/systemd/glorytun-setup index e3afada..51536b5 100755 --- a/systemd/glorytun-setup +++ b/systemd/glorytun-setup @@ -33,4 +33,10 @@ touch "$FILE.key" chmod 600 "$FILE.key" echo "$KEY" > "$FILE.key" -echo "Done" +_ask "Start glorytun now ? (enter to skip)" START +case "$START" in + y*|Y*) + systemctl restart systemd-networkd + systemctl start glorytun@"$NAME" + ;; +esac