From 25c850e43ce43780eba3e6b58e71ec05869cecfb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 31 Mar 2017 17:07:19 +0200 Subject: Fix script --- custom/uucp.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/custom/uucp.nix b/custom/uucp.nix index 822aa92f..2180d99c 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -282,7 +282,11 @@ in { source = '' #!${pkgs.stdenv.shell} - ${map (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} + case "${2}" in + (?(vpn-)up) + ${map (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} + ;; + esac ''; }; }; -- cgit v1.2.3