From 5c564b42ef3a8139ac620ea9f8f282f823c519b8 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 4 Nov 2024 15:32:07 +1000 Subject: Refactor aataaj.lua uninstall / purge as well. --- aataaj.lua | 24 ++++++++++++------------ 1 file 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 ]] Version = '0.0 crap' +local goAway() + __[[#!/bin/bash + echo "Uninstalling aataaj" + update-rc.d aataaj.lua remove + rm /etc/init.d/aataaj.lua + rm /usr/local/bin/aataaj.lua + ./PolygLua.lua -vvvv uninstall + ]]:log():show():Do() +end + local cmd = '' local options = { @@ -148,13 +158,7 @@ local options = E'Need to be root user to uninstall.' else print('UNINSTALLING!!!') - __[[#!/bin/bash - echo "Uninstalling aataaj" - update-rc.d aataaj.lua remove - rm /etc/init.d/aataaj.lua - rm /usr/local/bin/aataaj.lua - ./PolygLua.lua -vvvv uninstall - ]]:log():show():Do() + goAway() end os.exit(0) end @@ -167,12 +171,8 @@ local options = E'Need to be root user to purge.' else print('PURGING!!!') + goAway() __[[#!/bin/bash - echo "Purging aataaj" - update-rc.d aataaj.lua remove - rm /etc/init.d/aataaj.lua - rm /usr/local/bin/aataaj.lua - ./PolygLua.lua -vvvv uninstall rm -fr /var/lib/aataaj ]]:log():show():Do() end -- cgit v1.1