aboutsummaryrefslogtreecommitdiffstats
path: root/aataaj.lua
diff options
context:
space:
mode:
Diffstat (limited to 'aataaj.lua')
-rwxr-xr-xaataaj.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/aataaj.lua b/aataaj.lua
index fe0d2a4..03198e7 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -81,6 +81,16 @@ NOTE - Seems both ALSA and JACK are per user. So you need to run
81]] 81]]
82Version = '0.0 crap' 82Version = '0.0 crap'
83 83
84local 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()
92end
93
84local cmd = '' 94local cmd = ''
85local options = 95local 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