added arguments to shortcut and removed installer.lua as it was unnecessary
This commit is contained in:
@@ -1,33 +1,2 @@
|
||||
local args = {...}
|
||||
local headerText = "PowerManager - Installer\n"
|
||||
local startOnBootText = "Beim Boot ausführen?"
|
||||
local automaticUpdateText = "Automatisch updates herunterladen?"
|
||||
|
||||
--returns the user input as bool (Y/N) -> (1/0)
|
||||
local function askThatDamnUser(prompt)
|
||||
while true do
|
||||
print(">>> " .. prompt)
|
||||
local userInput = io.read()
|
||||
|
||||
if userInput == "Y" then
|
||||
return true
|
||||
elseif userInput == "N" then
|
||||
return false
|
||||
else
|
||||
print("Hallo? => ( Y / N ) Nicht -> " .. userInput)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local startOnBoot = askThatDamnUser(startOnBootText)
|
||||
local automaticUpdate = askThatDamnUser(automaticUpdateText)
|
||||
|
||||
if startOnBoot then
|
||||
print("notImplementedYet")
|
||||
end
|
||||
if automaticUpdate then
|
||||
print("notImplementedYet")
|
||||
end
|
||||
|
||||
os.execute("mv shortcut.lua /usr/bin/powerman.lua")
|
||||
Reference in New Issue
Block a user