added an interactive nsh client
This commit is contained in:
parent
1a1c7e9bd6
commit
de863ae72e
8
modules/applications/inshc.lua
Normal file
8
modules/applications/inshc.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
function inshc(hA,pO,pW)
|
||||||
|
write("Address: ")
|
||||||
|
if hA then print(hA) else hA=readln() end
|
||||||
|
write("Port: ")
|
||||||
|
if pO then print(pO) else pO=readln() end
|
||||||
|
if pW then print("Password provided.") else write("Password (empty for no auth): ") readln("*") end
|
||||||
|
if pW == "" or pW == nil then nshc(pO,hA) else nshcs(pO,hA,pW) end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user