diff options
author | dvs1 | 2024-11-04 15:32:07 +1000 |
---|---|---|
committer | dvs1 | 2024-11-04 15:32:07 +1000 |
commit | 5c564b42ef3a8139ac620ea9f8f282f823c519b8 (patch) | |
tree | 15d3847cc6176f305f85b6ad8b7b383046535038 /aataaj.lua | |
parent | Refactor PolygLua.lua uninstall / purge. (diff) | |
download | JackOnAllDevices-5c564b42ef3a8139ac620ea9f8f282f823c519b8.zip JackOnAllDevices-5c564b42ef3a8139ac620ea9f8f282f823c519b8.tar.gz JackOnAllDevices-5c564b42ef3a8139ac620ea9f8f282f823c519b8.tar.bz2 JackOnAllDevices-5c564b42ef3a8139ac620ea9f8f282f823c519b8.tar.xz |
Refactor aataaj.lua uninstall / purge as well.
Diffstat (limited to '')
-rwxr-xr-x | aataaj.lua | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -81,6 +81,16 @@ NOTE - Seems both ALSA and JACK are per user. So you need to run | |||
81 | ]] | 81 | ]] |
82 | Version = '0.0 crap' | 82 | Version = '0.0 crap' |
83 | 83 | ||
84 | local goAway() | ||
85 | __[[#!/bin/bash | ||
86 | echo "Uninstalling aataaj" | ||
87 | update-rc.d aataaj.lua remove | ||
88 | rm /etc/init.d/aataaj.lua | ||
89 | rm /usr/local/bin/aataaj.lua | ||
90 | ./PolygLua.lua -vvvv uninstall | ||
91 | ]]:log():show():Do() | ||
92 | end | ||
93 | |||
84 | local cmd = '' | 94 | local cmd = '' |
85 | local options = | 95 | local options = |
86 | { | 96 | { |
@@ -148,13 +158,7 @@ local options = | |||
148 | E'Need to be root user to uninstall.' | 158 | E'Need to be root user to uninstall.' |
149 | else | 159 | else |
150 | print('UNINSTALLING!!!') | 160 | print('UNINSTALLING!!!') |
151 | __[[#!/bin/bash | 161 | goAway() |
152 | echo "Uninstalling aataaj" | ||
153 | update-rc.d aataaj.lua remove | ||
154 | rm /etc/init.d/aataaj.lua | ||
155 | rm /usr/local/bin/aataaj.lua | ||
156 | ./PolygLua.lua -vvvv uninstall | ||
157 | ]]:log():show():Do() | ||
158 | end | 162 | end |
159 | os.exit(0) | 163 | os.exit(0) |
160 | end | 164 | end |
@@ -167,12 +171,8 @@ local options = | |||
167 | E'Need to be root user to purge.' | 171 | E'Need to be root user to purge.' |
168 | else | 172 | else |
169 | print('PURGING!!!') | 173 | print('PURGING!!!') |
174 | goAway() | ||
170 | __[[#!/bin/bash | 175 | __[[#!/bin/bash |
171 | echo "Purging aataaj" | ||
172 | update-rc.d aataaj.lua remove | ||
173 | rm /etc/init.d/aataaj.lua | ||
174 | rm /usr/local/bin/aataaj.lua | ||
175 | ./PolygLua.lua -vvvv uninstall | ||
176 | rm -fr /var/lib/aataaj | 176 | rm -fr /var/lib/aataaj |
177 | ]]:log():show():Do() | 177 | ]]:log():show():Do() |
178 | end | 178 | end |