Added start of package manager.

This commit is contained in:
Andrew Lalis 2019-05-07 15:20:59 +02:00
parent db2dd32d04
commit 6615635013
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,17 @@
local component = require("component")
local event = require("event")
local modem = component.modem
local PORT = 80
local PROTOCOL = "pm"
local function initialize()
modem.open(PORT)
print("Initialized pm_client on port " .. PORT)
end
-- Main Program Script
local action = arg[1]
if action == nil then
print("No action specified.")
end

View File

@ -0,0 +1,8 @@
-- Main Program Script
local action = arg[1]
if action == nil then
print("No action specified.")
os.exit()
end
print("You entered the action: " .. action)