diff options
author | dvs1 | 2024-11-03 23:34:26 +1000 |
---|---|---|
committer | dvs1 | 2024-11-03 23:34:26 +1000 |
commit | 77c4dc67b26657978fd17604b1315a779ffb685d (patch) | |
tree | b00f78deb7d6d35bc1e5c26447259600607cd890 /aataaj.lua | |
parent | PolygLua.lua installs itself. (diff) | |
download | JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.zip JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.gz JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.bz2 JackOnAllDevices-77c4dc67b26657978fd17604b1315a779ffb685d.tar.xz |
Install command for aataaj.
Diffstat (limited to 'aataaj.lua')
-rwxr-xr-x | aataaj.lua | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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. |
135 | local GUI = 'qjackctl' | 155 | local GUI = 'qjackctl' |
136 | if _.runnable('catia') then GUI = 'catia' end | 156 | if _.runnable('catia') then GUI = 'catia' end |