Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("Nick Chi MiniOS 1.0")
- local arg = {...}
- local proxy
- local fs = require("filesystem")
- local dir = "/mnt"
- local binpath = '/home/bin'
- if (arg[1]==nil) then
- for entry in fs.list(dir) do
- print(entry)
- proxy = entry:sub(1, -2)
- break
- end
- else
- proxy = arg[1]
- end
- print ("Mount disk: "..proxy)
- fs.mount(proxy, "/home")
- print("Диск замонтирован..ok!")
- -- Изменить разрешение
- local shell = require('shell')
- script = 'aSnCpH2c'
- print ("Execute "..script)
- shell.execute('pastebin run '..script)
- -- Добавить свой путь для своих скриптов
- print('Добавить свой путь для своих скриптов :', binpath);
- shell.setPath(shell.getPath() .. ":"..binpath)
- local function installSoft(namesoft, pastebinid)
- local filename = binpath..'/'..namesoft..'.lua';
- local mc_success, mc_reason = shell.execute('wget https://pastebin.com/raw/'..pastebinid..' '..filename)
- if not mc_success then
- print(mc_reason)
- else
- print ("Установка ["..namesoft.."] .. ok!")
- end
- end
- -- Загрузка ПО
- print ("Загрузка и установка ПО")
- local success, reason = shell.execute('mkdir '..binpath)
- if not success then
- print(reason)
- else
- installSoft('mc','kE3jp6nD')
- installSoft('holo','tdxECas7')
- installSoft('fexp','EWBZ9ucB')
- installSoft('gmine','eFkAZP0u')
- installSoft('fire','qcibULvS')
- installSoft('pbin','zuUJ8f8S')
- installSoft('send','UVXt5ZQi')
- installSoft('red','Hew7P7uY')
- end
- print ("Установка ПО завершена")
- --local success, reason = shell.execute('ls')
- --if not success then
- -- print(reason)
- --end
- --print (success)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement