Compare commits
No commits in common. "39ea9c1a18cb90eda64bd7ae3bf5dfda9f2e5c6f" and "0ac49235685a74cd7f186ee56c2744d5b5a39d79" have entirely different histories.
39ea9c1a18
...
0ac4923568
@ -20,7 +20,7 @@ function netutil.exportfs(path)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function netutil.ping(addr,times,timeout)
|
function ping(addr,times,timeout)
|
||||||
local times, timeout = times or 5, timeout or 30
|
local times, timeout = times or 5, timeout or 30
|
||||||
for i = 1, times do
|
for i = 1, times do
|
||||||
local ipt = computer.uptime()
|
local ipt = computer.uptime()
|
||||||
|
@ -22,19 +22,6 @@ function shutil.import(lib)
|
|||||||
end
|
end
|
||||||
require(lib)
|
require(lib)
|
||||||
nE[#nE+1] = lib
|
nE[#nE+1] = lib
|
||||||
os.setenv("INCLUDE",nE)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
function shutil.unimport(lib)
|
|
||||||
local cE = os.getenv("INCLUDE") or shell.include
|
|
||||||
local nE = {}
|
|
||||||
for k,v in pairs(cE) do
|
|
||||||
if v ~= lib then
|
|
||||||
nE[#nE+1] = v
|
|
||||||
end
|
|
||||||
end
|
|
||||||
os.setenv("INCLUDE",nE)
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -116,6 +103,5 @@ end
|
|||||||
shutil.cd = os.chdir
|
shutil.cd = os.chdir
|
||||||
shutil.mkdir = fs.makeDirectory
|
shutil.mkdir = fs.makeDirectory
|
||||||
shutil.cp = fs.copy
|
shutil.cp = fs.copy
|
||||||
shutil.rm = fs.remove
|
|
||||||
|
|
||||||
return shutil
|
return shutil
|
||||||
|
Loading…
Reference in New Issue
Block a user