Added start of package manager.
This commit is contained in:
parent
db2dd32d04
commit
6615635013
|
@ -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
|
|
@ -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)
|
Loading…
Reference in New Issue