summaryrefslogtreecommitdiffstats
path: root/god/overlord/overlord
diff options
context:
space:
mode:
Diffstat (limited to 'god/overlord/overlord')
-rw-r--r--god/overlord/overlord8
1 files changed, 8 insertions, 0 deletions
diff --git a/god/overlord/overlord b/god/overlord/overlord
new file mode 100644
index 00000000..c7a79f35
--- /dev/null
+++ b/god/overlord/overlord
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+announcement=$1
+LC_ALL=C aplay -l|sed -n 's/^card \([0-9]\+\):.*\[USB Audio\]$/\1/p'
+
+mplayer -ao alsa:device=hw=$LC_ALL announce.mp3
+/krebs/util/bin/natural $announcement
+