diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-30 19:41:30 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-09-30 19:41:30 +0200 |
commit | 540052d1170d63f2af967580e1644b9e4e544b9a (patch) | |
tree | c0de4121c1a1b1554148aacd49d8b0608a251c23 /hel/recv-media.nix | |
parent | bd0e94b30fd3f9ac21f1a9a3731a0d344a683319 (diff) | |
download | nixos-540052d1170d63f2af967580e1644b9e4e544b9a.tar nixos-540052d1170d63f2af967580e1644b9e4e544b9a.tar.gz nixos-540052d1170d63f2af967580e1644b9e4e544b9a.tar.bz2 nixos-540052d1170d63f2af967580e1644b9e4e544b9a.tar.xz nixos-540052d1170d63f2af967580e1644b9e4e544b9a.zip |
scoping
Diffstat (limited to 'hel/recv-media.nix')
-rw-r--r-- | hel/recv-media.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hel/recv-media.nix b/hel/recv-media.nix index f5888f8d..f81d7c9e 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix | |||
@@ -1,12 +1,12 @@ | |||
1 | { stdenv, coreutils, writeScriptBin }: | 1 | { stdenv, coreutils, writeScriptBin, util-linux }: |
2 | 2 | ||
3 | writeScriptBin "recv-media" '' | 3 | writeScriptBin "recv-media" '' |
4 | #!${stdenv.shell} | 4 | #!${stdenv.shell} |
5 | 5 | ||
6 | pid=$? | 6 | pid=$? |
7 | 7 | ||
8 | exec 1> >(${pkgs.util-linux}/bin/logger --id=$pid -t recv-media -p user.notice) | 8 | exec 1> >(${util-linux}/bin/logger --id=$pid -t recv-media -p user.notice) |
9 | exec 2> >(${pkgs.util-linux}/bin/logger --id=$pid -t recv-media -p user.error) | 9 | exec 2> >(${util-linux}/bin/logger --id=$pid -t recv-media -p user.error) |
10 | 10 | ||
11 | [[ -z "$1" || -z "$2" ]] && exit 2 | 11 | [[ -z "$1" || -z "$2" ]] && exit 2 |
12 | 12 | ||