SHARE
TWEET

onlineinstall

a guest May 25th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local files = fs.list("/")
  2. for i=1, #files do
  3.   if string.sub(files[i],1 ,4) ~= "disk" and files[i] ~= "rom" and files[i] ~= "openp" then
  4.     fs.delete(files[i])
  5.   end
  6. end
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. local files = {
  14.     ["startup"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/booter",
  15.     ["/sys/os"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data",
  16.     ["/sys/.conf"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/conf",
  17.     ["/sys/version"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/ver",
  18.     ["/sys/apis/sysapi"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/apis/sysapi",
  19.     ["/sys/cmds/time"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/time",
  20.     ["/sys/cmds/shutdown"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/shutdown",
  21.     ["/sys/cmds/reboot"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/reboot",
  22.     ["/sys/cmds/ls"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/ls",
  23.     ["/sys/cmds/help"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/help",
  24.     ["/sys/cmds/exit"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/exit",
  25.     ["/sys/cmds/clear"] = "https://raw.githubusercontent.com/Kuntish/KuntOS/master/data0/cmds/clear"
  26. }
  27. for k, v in pairs( files ) do
  28.   local h = http.get( v )
  29.   if h then
  30.     local f = fs.open( k, "w" )
  31.     f.write( h.readAll() )
  32.     f.close()
  33.     h.close()
  34.   else
  35.     error( "couldn't connect" )
  36.   end
  37. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top