mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 06:31:14 +02:00
17 lines
423 B
Lua
17 lines
423 B
Lua
local fs = require("filesystem")
|
|
local shell = require("shell")
|
|
local crypttool = require("crypttool")
|
|
local data = require("component").data
|
|
local os = require("os")
|
|
|
|
local args, opt = shell.parse(...)
|
|
|
|
if (#args ~= 2) then
|
|
os.exit(1)
|
|
end
|
|
if (fs.isDirectory(args[1])) then
|
|
local proxy = crypttool.Proxy.new(args[1], data.md5(args[2]))
|
|
fs.umount(args[1])
|
|
fs.mount(proxy, args[1])
|
|
end
|