summaryrefslogtreecommitdiff
path: root/custom/uucp-mediaserver/scripts/mediaspace
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-05 22:05:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-05 22:05:05 +0200
commitaf359b71b000651812e1ee70638b480502eba0ec (patch)
tree8f246fa120b54c29f3bdf64e8e3b389ec5311851 /custom/uucp-mediaserver/scripts/mediaspace
parentfbc53fdb0e012524b1a22083d19a6928cc87870e (diff)
downloadnixos-af359b71b000651812e1ee70638b480502eba0ec.tar
nixos-af359b71b000651812e1ee70638b480502eba0ec.tar.gz
nixos-af359b71b000651812e1ee70638b480502eba0ec.tar.bz2
nixos-af359b71b000651812e1ee70638b480502eba0ec.tar.xz
nixos-af359b71b000651812e1ee70638b480502eba0ec.zip
media-server on odin
Diffstat (limited to 'custom/uucp-mediaserver/scripts/mediaspace')
-rwxr-xr-xcustom/uucp-mediaserver/scripts/mediaspace9
1 files changed, 9 insertions, 0 deletions
diff --git a/custom/uucp-mediaserver/scripts/mediaspace b/custom/uucp-mediaserver/scripts/mediaspace
new file mode 100755
index 00000000..5d636a53
--- /dev/null
+++ b/custom/uucp-mediaserver/scripts/mediaspace
@@ -0,0 +1,9 @@
1#!@zsh@/bin/zsh
2
3base=$(basename $0)
4suffix=${base##*.}
5
6printf "%d\n" "$1" > @queueDir@/mediaspace.$suffix
7echo > @queueDir@/queuesize.$suffix
8update-queuesize.$suffix
9