aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-11-03 23:34:26 +1000
committerdvs12024-11-03 23:34:26 +1000
commit77c4dc67b26657978fd17604b1315a779ffb685d (patch)
treeb00f78deb7d6d35bc1e5c26447259600607cd890
parentPolygLua.lua installs itself. (diff)
downloadJackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.zip
JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.gz
JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.bz2
JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.xz
Install command for aataaj.
-rwxr-xr-xaataaj.lua22
1 files changed, 21 insertions, 1 deletions
diff --git a/aataaj.lua b/aataaj.lua
index ce691fa..0a127bf 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -125,12 +125,32 @@ local options =
125 asoundrcPath = {help = 'Path to our config files and stuff.', value = '/var/lib/aataaj', }, 125 asoundrcPath = {help = 'Path to our config files and stuff.', value = '/var/lib/aataaj', },
126 asoundrc = {help = 'Name of asoundrc file.', value = 'asoundrc', }, 126 asoundrc = {help = 'Name of asoundrc file.', value = 'asoundrc', },
127 aliases = {help = 'Aliases for audio devices.', value = {}, }, 127 aliases = {help = 'Aliases for audio devices.', value = {}, },
128 install =
129 {
130 help = 'Command to install aataaj.lua',
131 func = function(self, options, a, args, i)
132 local w = __[[whoami]]:noErr():Do().lines[1]
133 local d = __[[pwd]]:noErr():Do().lines[1]
134 if 'root' ~= w then
135 E'Need to be root user to install.'
136 else
137 print('INSTALLING!!!')
138 __[[#!/bin/bash
139 echo "Installing PolygLua"
140 ./PolygLua.lua -vvvv
141 ln -s aataaj.lua /usr/local/bin/aataaj.lua
142 ln -s /usr/local/bin/aataaj.lua /etc/init.d/aataaj.lua
143 update-rc.d aataaj.lua defaults
144 ]]:log():show():Do()
145 end
146 os.exit(0)
147 end
148 },
128} 149}
129 150
130_.parse(arg, options, 'aataaj') 151_.parse(arg, options, 'aataaj')
131 152
132 153
133
134-- CHANGE these to suit. 154-- CHANGE these to suit.
135local GUI = 'qjackctl' 155local GUI = 'qjackctl'
136if _.runnable('catia') then GUI = 'catia' end 156if _.runnable('catia') then GUI = 'catia' end