From e4fcdb2458635ca3c034fcd2df129f53d9e154e5 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Thu, 24 Oct 2024 13:28:18 +1000 Subject: Some more tidying up. --- aataaj.lua | 59 ----------------------------------------------------------- 1 file changed, 59 deletions(-) (limited to 'aataaj.lua') diff --git a/aataaj.lua b/aataaj.lua index e7bb492..06077c2 100755 --- a/aataaj.lua +++ b/aataaj.lua @@ -17,7 +17,6 @@ local _ = require '_' - local Help = [[ This is part of the AllAudioToALSAandJACK project, aataaj for short, pronounced like "attach". @@ -149,64 +148,6 @@ _.parseArgs(options, args) - - - ---[=[ -local args = {...} -if 0 ~= #args then --- for i,a in pairs(args) do --- print('Argument ' .. i .. ' = ' .. a) --- end - - if 'start' == args[1] then - elseif 'stop' == args[1] then - elseif 'STOP' == args[1] then - _.killEmAll{'qsynth'} - __[[ - a2j_control --stop - sleep 2 - a2j_control --exit - sleep 2 -]]:Do() - _.killEmAll{'alsa_in', 'alsa_out', 'zita-a2j', 'zita-j2a', 'aseqjoy', 'jack-plumbing'} - __[[ - sleep 2 - jack_control stop - sleep 2 - jack_control exit - sleep 2 -]]:Do() - _.killEmAll{'jmcore', 'qjackctl'} - -- Catia is python, and no easy way to kill it. - -- Also it keeps jackdbus alive, no matter how hard you kill it. - __"pkill -TERM -u $USER -f catia":Do() - __"sleep 2":Do() - _.killEmAll{'jackdbus', 'a2jmidid'} - return(0) - elseif 'JACK' == args[1] then - elseif 'restart' == args[1] then args[1] = 'start' - elseif 'force-reload' == args[1] then args[1] = 'start' - elseif 'status' == args[1] then - return(0) - elseif 'help' == args[1] then - print(Help) - return(0) - elseif '--help' == args[1] then - print(Help) - return(0) - else - print("Usage: aataaj.lua {start|stop|restart|force-reload|status|JACK|STOP}") - return(1) - end -else - print("Usage: aataaj.lua {help|start|stop|restart|force-reload|status|JACK|STOP}") - return(1) -end -]=] - - - -- CHANGE these to suit. local asoundrcPath = '/var/lib/aataaj' local asoundrc = 'asoundrc' -- cgit v1.1