/usr/bin/meterec-init-conf is in meterec 0.9.2~ds0-2+b1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #!/bin/bash
if [ -n "$1" ]; then
CONF_FILE=$1.mrec
rm -f $CONF_FILE;
touch $CONF_FILE;
echo Creating $CONF_FILE file mapping all jack system ports
INDEX=""
echo "ports=(">> $CONF_FILE
for CAPTURE in `jack_lsp system:capture | grep system`
do
if [ -n "$INDEX" ]; then
echo "," >> $CONF_FILE
fi
INDEX=`echo $CAPTURE | awk -F"_" '{print $2}'`
echo -n \{ takes=\"\"\; record=\"rec\"\; mute=false\; thru=true\; connections=\[\"$CAPTURE\"\,\"`jack_lsp system:playback $INDEX | grep system | head -1`\"\]\; name=\"\"\; \} >> $CONF_FILE
done
echo "" >> $CONF_FILE
echo ");" >> $CONF_FILE
echo "version=1;" >> $CONF_FILE
else
echo "Usage: meterec-init-conf <session-name>"
exit 1
fi
|