Advertisement
rickydaan

OS _ 1.1

Mar 23rd, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.42 KB | None | 0 0
  1. -- DONT EDIT THIS OR UPDATE / CHECKUPDATE IS RUINED
  2. version = "1.0.0"
  3. -- From here its safe ;)
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. print("Do you want to install Linux OS? ")
  7. ia = read()
  8. if ia == "yes" then
  9.  
  10. -- Making database
  11. shell.run("mkdir", "addons")
  12. shell.run("mkdir", "db")
  13. shell.run("mkdir", "db/users")
  14. shell.run("mkdir", "db/users/level")
  15. shell.run("mkdir", "db/users/pass")
  16. shell.run("mkdir", "db/users/blocked")
  17. shell.run("mkdir", "db/sys")
  18. shell.run("mkdir", "db/sys/config")
  19.  
  20. file = io.open("db/sys/config/ap", "w")
  21. file : write('5')
  22. file : close()
  23.  
  24. -- Asking admin data
  25. print("Admin username? ")
  26. ian = read()
  27. print("Admin password?")
  28. iap = read()
  29.  
  30. -- Registering admin data
  31. file = io.open("session", "w")
  32. file : write(ian)
  33. file : close()
  34.  
  35. file = io.open("db/users/pass/"..ian, "w")
  36. file : write(iap)
  37. file : close()
  38.  
  39. file = io.open("db/users/level/".. ian, "w")
  40. file : write('6')
  41. file : close()
  42.  
  43. -- File installation
  44. --between file
  45. file = io.open("startup", "w")
  46. file : write([[
  47. sleep(.001)
  48. term.clear()
  49. term.setCursorPos(1,1)
  50. print("---[ Linux OS - Main menu ]--------------------")
  51. print("I")
  52. print("I [1] login")
  53. print("I [2] Register")
  54. print("I")
  55. print("-----------------------------------------------")
  56. stop = false
  57. while not stop do
  58. event, char = os.pullEvent()
  59. if event == "key" and char == 2 then
  60. shell.run("login")
  61. stop = true
  62. elseif event == "key" and char == 3 then
  63. shell.run("register")
  64. stop = true
  65. end
  66. end
  67. ]])
  68. file : close()
  69.  
  70. --between file
  71. file = io.open("register", "w")
  72. file : write([[
  73. function acc()
  74. event = os.pullEvent()
  75. if event == "char" or event == "key" then
  76. shell.run("startup")
  77. end
  78. end
  79. function error()
  80. event = os.pullEvent()
  81. if event == "char" or event == "key" then
  82. shell.run("register")
  83. end
  84. end
  85. sleep(.1)
  86. term.clear()
  87. term.setCursorPos(1,1)
  88. print("---[ Linux OS - register ]---------------------")
  89. print("I Type back at the username to go back")
  90. print("I Username:")
  91. print("I Password:")
  92. print("I Error:")
  93. print("I At a error press any key to continue")
  94. print("-----------------------------------------------")
  95. term.setCursorPos(13,3)
  96. rname = read()
  97. if rname == "back" then
  98. shell.run("startup")
  99. end
  100.  
  101. term.setCursorPos(13,4)
  102. rpass = read()
  103.  
  104. if fs.exists("db/users/pass/"..rname) then
  105. term.setCursorPos(10,5)
  106. print("Username exists")
  107. error()
  108. else
  109. if fs.exists("db/users/blocked/"..rname) then
  110. term.setCursorPos(10,5)
  111. print("This user is blocked")
  112. error()
  113. else
  114. file = io.open("db/users/pass/"..rname, "w")
  115. file : write(rpass)
  116. file : close()
  117.  
  118. file = io.open("db/users/level/"..rname, "w")
  119. file : write('1')
  120. file : close()
  121. term.setCursorPos(3,5)
  122. print("Account created: Press any key to continue")
  123. acc()
  124. end
  125. end
  126.  
  127.  
  128. ]])
  129. file : close()
  130.  
  131. --between file
  132. file = io.open("login", "w")
  133. file : write([[
  134. function error()
  135. event = os.pullEvent()
  136. if event == "char" or event == "key" then
  137. shell.run("login")
  138. end
  139. end
  140. sleep(.1)
  141. term.clear()
  142. term.setCursorPos(1,1)
  143. print("---[ Linux OS - Login ]------------------------")
  144. print("I Enter at username: back, to go back")
  145. print("I Username:")
  146. print("I Password:")
  147. print("I Error:")
  148. print("I At a error press any key to continue")
  149. print("-----------------------------------------------")
  150.  
  151. term.setCursorPos(13,3)
  152. lname = read()
  153. if lname == "back" then
  154. shell.run("startup")
  155. end
  156.  
  157. term.setCursorPos(13,4)
  158. lpass = read()
  159.  
  160.  
  161. if fs.exists("db/users/pass/"..lname) then
  162. if fs.exists("db/users/blocked/"..lname) then
  163. term.setCursorPos(10,5)
  164. print("This user is blocked")
  165. error()
  166. else
  167. file = io.open("db/users/pass/"..lname, "r")
  168. gpass = file : read()
  169. file : close()
  170. if gpass == lpass then
  171. file = io.open("session", "w")
  172. file : write(lname)
  173. file : close()
  174. shell.run("loggedin")
  175. else
  176. term.setCursorPos(10,5)
  177. print("Password incorrect")
  178. error()
  179. end
  180. end
  181. else
  182. term.setCursorPos(10,5)
  183. print("Unknown username")
  184. error()
  185. end
  186.  
  187.  
  188. ]])
  189. file : close()
  190.  
  191. --between file
  192. file = io.open("loggedin", "w")
  193. file : write([[
  194. sleep(.1)
  195. term.clear()
  196. term.setCursorPos(1,1)
  197. -- Recieving data
  198. file = io.open("session", "r")
  199. sname = file : read()
  200. file : close()
  201.  
  202. file = io.open("db/users/level/"..sname, "r")
  203. slevel = file : read()
  204. file : close()
  205.  
  206. file = io.open("db/sys/config/ap", "r")
  207. rpanel = file : read()
  208. file : close()
  209.  
  210. if slevel>rpanel then
  211. term.setCursorPos(3,12)
  212. print("[8] Admin panel")
  213. end
  214.  
  215. -- End data, starting GUI
  216. term.setCursorPos(1,1)
  217. print("-----------------------------------------------")
  218. print("I Name: ".. sname)
  219. term.setCursorPos(38, 2)
  220. print("Level: "..slevel.." I")
  221. term.setCursorPos(1,3)
  222. print("---[ Linux OS - Logged in ]--------------------")
  223. print("I")
  224. print("I [1] Addons ")
  225. print("I [2] User CP ")
  226. print("I [3] Games ")
  227. print("I [4] About ")
  228. print("I [5] System Data ")
  229. print("I [6] Handy items ")
  230. print("I [7] Logout ")
  231. print("I")
  232. print("I")
  233. print("-----------------------------------------------")
  234.  
  235. stop = false
  236. while not stop do
  237. event, char = os.pullEvent()
  238.  
  239. if event == "key" and char == 2 then
  240. shell.run("addon")
  241. stop = true
  242. end
  243. if event == "key" and char == 3 then
  244. shell.run("ucp")
  245. stop = true
  246. end
  247. if event == "key" and char == 4 then
  248. shell.run("games")
  249. stop = true
  250. end
  251. if event == "key" and char == 5 then
  252. shell.run("about")
  253. stop = true
  254. end
  255. if event == "key" and char == 6 then
  256. shell.run("sd")
  257. stop = true
  258. end
  259. if event == "key" and char == 7 then
  260. shell.run("hi")
  261. stop = true
  262. end
  263. if event == "key" and char == 8 then
  264. shell.run("logout")
  265. stop = true
  266. end
  267.  
  268. if slevel>rpanel then
  269. if event == "key" and char == 9 then
  270. shell.run("ap")
  271. stop = true
  272. end
  273. end
  274. end
  275.  
  276. ]])
  277. file : close()
  278.  
  279. --between file
  280. file = io.open("addon", "w")
  281. file : write([[
  282. sleep(.1)
  283. term.clear()
  284. term.setCursorPos(1,1)
  285. print("---[ Linux OS - Addons ]----------------")
  286. print("I")
  287. print("I [1] List addons")
  288. print("I [2] Select a addon")
  289. print("I [3] Go back")
  290. print("----------------------------------------")
  291. stop = false
  292. while not stop do
  293. event, char = os.pullEvent()
  294. if event == "key" and char == 2 then
  295. shell.run("list_addon")
  296. stop = true
  297. end
  298. if event == "key" and char == 3 then
  299. shell.run("select_addon")
  300. stop = true
  301. end
  302. if event == "key" and char == 4 then
  303. shell.run("loggedin")
  304. stop = true
  305. end
  306. end
  307.  
  308. ]])
  309. file : close()
  310.  
  311. --between file
  312. file = io.open("list_addon", "w")
  313. file : write([[
  314. sleep(.1)
  315. term.clear()
  316. term.setCursorPos(1,1)
  317. print("---[ Linux OS - Addon list ]------------")
  318. shell.run("list", "addons")
  319. print("Press any key to continue")
  320. stop = false
  321. while not stop do
  322. event = os.pullEvent()
  323. if event == "char" or event == "key" then
  324. shell.run("addon")
  325. stop = true
  326. end
  327. end
  328.  
  329. ]])
  330. file : close()
  331.  
  332. --between file
  333. file = io.open("select_addon", "w")
  334. file : write([[
  335. function error()
  336. event = os.pullEvent()
  337. if event == "char" or event == "key" then
  338. shell.run("addon")
  339. end
  340. end
  341.  
  342. sleep(.1)
  343. term.clear()
  344. term.setCursorPos(1,1)
  345. print("---[ Linux OS - Selecting Addon ]-------")
  346. print("I")
  347. print("I Addon: ")
  348. print("I Error: ")
  349. print("I BUG: You need to type a working addon")
  350. print("I twice to run it!")
  351. print("I At any error code press any key to")
  352. print("I continue.")
  353. print("----------------------------------------")
  354. term.setCursorPos(10,3)
  355. answer = read()
  356. if fs.exists("addons/"..answer) then
  357. shell.run("addons/"..answer)
  358. else
  359. term.setCursorPos(10,4)
  360. print("Unknown addon name")
  361. error()
  362. end
  363.  
  364.  
  365. ]])
  366. file : close()
  367.  
  368. --between file
  369. file = io.open("about", "w")
  370. file : write([[
  371. sleep(.1)
  372. term.clear()
  373. term.setCursorPos(1,1)
  374. print("---[ Linux OS - About ]-----------------")
  375. print("I")
  376. print("I Linux Minecraftus is made on ")
  377. print("I the Lets Code - server")
  378. print("I The company makes more systems")
  379. print("I The main developer is Rickydaan")
  380. print("I Someone else working on this project")
  381. print("I is Sgt ")
  382. print("I LinuxOS is to make CC easyer, ")
  383. print("I and is the only OS allows you to make ")
  384. print("I addons, and let them run easy")
  385. print("I Linux Minecraftus is a multi-script")
  386. print("I CC maker.")
  387. print("I Press any key to continue")
  388. print("----------------------------------------")
  389.  
  390. stop = false
  391. while not stop do
  392. event = os.pullEvent()
  393. if event == "key" or event == "char" then
  394. shell.run("loggedin")
  395. stop = true
  396. end
  397. end
  398.  
  399. ]])
  400. file : close()
  401.  
  402. --between file
  403. file = io.open("games", "w")
  404. file : write([[
  405. sleep(.1)
  406. term.clear()
  407. term.setCursorPos(1,1)
  408. print("---[ Linux OS - Games ]-----------------")
  409. print("I")
  410. print("I [1] Snake")
  411. print("I [2] Adventure")
  412. print("I [3] Go back")
  413. print("I COMMENT: Our scripters are making")
  414. print("I more games!")
  415. print("I")
  416. print("----------------------------------------")
  417. stop = false
  418. while not stop do
  419. event, char = os.pullEvent()
  420. if event == "key" and char == 2 then
  421. shell.run("clear")
  422. shell.run("worm")
  423. stop = true
  424. end
  425. if event == "key" and char == 3 then
  426. shell.run("clear")
  427. shell.run("adventure")
  428. stop = true
  429. end
  430. if event == "key" and char == 4 then
  431. shell.run("loggedin")
  432. stop = true
  433. end
  434. end
  435.  
  436.  
  437. ]])
  438. file : close()
  439.  
  440. --between file
  441. file = io.open("hi", "w")
  442. file : write([[
  443. term.clear()
  444. sleep(.1)
  445. term.setCursorPos(1,1)
  446. print("---[ Linux OS - Handy items ]-----------")
  447. print("I")
  448. print("I [1] Calculator")
  449. print("I [2] Go back")
  450. print("I")
  451. print("----------------------------------------")
  452. stop = false
  453. while not stop do
  454. event, char = os.pullEvent()
  455. if event == "key" and char == 2 then
  456. shell.run("hi_calc")
  457. stop = true
  458. end
  459. if event == "key" and char == 3 then
  460. shell.run("loggedin")
  461. stop = true
  462. end
  463. end
  464.  
  465.  
  466. ]])
  467. file : close()
  468.  
  469. --between file
  470. file = io.open("hi_calc", "w")
  471. file : write([[
  472. function con()
  473. event = os.pullEvent()
  474. if event == "key" or event == "char" then
  475. shell.run("hi")
  476. end
  477. end
  478.  
  479. function error()
  480. event = os.pullEvent()
  481. if event == "key" or event == "char" then
  482. shell.run("hi_calc")
  483. end
  484. end
  485.  
  486. function plus()
  487. term.setCursorPos(11,12)
  488. answer = ba + bb
  489. print(answer)
  490. con()
  491. end
  492. function times()
  493. term.setCursorPos(11,12)
  494. answer = ba * bb
  495. print(answer)
  496. con()
  497. end
  498. function slash()
  499. term.setCursorPos(11,12)
  500. answer = ba / bb
  501. print(answer)
  502. con()
  503. end
  504. function minus()
  505. term.setCursorPos(11,12)
  506. answer = ba - bb
  507. print(answer)
  508. con()
  509. end
  510. sleep(.1)
  511. term.clear()
  512. term.setCursorPos(1,1)
  513. print("---[ Linux OS - Calculator ]------------")
  514. print("I Say back / exit at q1 to exit")
  515. print("I Enter a +, -, /, or *")
  516. print("I ")
  517. print("I Number one?")
  518. print("I")
  519. print("I Number two?")
  520. print("I")
  521. print("I Error:")
  522. print("I If error / answer,")
  523. print("I press any key to continue")
  524. print("I Answer: ")
  525. print("I")
  526. print("----------------------------------------")
  527. term.setCursorPos(3,4)
  528. aa = read()
  529. term.setCursorPos(3,6)
  530. ba = read()
  531. term.setCursorPos(3,8)
  532. bb = read()
  533.  
  534. if aa == "+" then
  535. plus()
  536. elseif aa == "-" then
  537. minus()
  538. elseif aa == "/" then
  539. slash()
  540. elseif aa == "*" then
  541. times()
  542. elseif aa == "exit" or aa == "back" then
  543. shell.run("hi")
  544. else
  545.  
  546. term.setCursorPos(10,9)
  547. print("Unknown command")
  548. error()
  549. end
  550.  
  551.  
  552. ]])
  553. file : close()
  554.  
  555. --between file
  556. file = io.open("logout", "w")
  557. file : write([[
  558. sleep(.1)
  559. fs.delete("session")
  560. file = io.open("session", "w")
  561. file : write()
  562. file : close()
  563. shell.run("startup")
  564.  
  565. ]])
  566. file : close()
  567.  
  568. --between file
  569. file = io.open("sd", "w")
  570. file : write([[
  571. sleep(.005)
  572. term.clear()
  573. term.setCursorPos(15,4)
  574. file = io.open("db/sys/version", "r")
  575. cversion = file : read()
  576. file : close()
  577. print(cversion)
  578.  
  579. if not http then
  580. term.setCursorPos(17,3)
  581. print("No")
  582. term.setCursorPos(19,5)
  583. print("HTTP is disabled")
  584. else
  585. term.setCursorPos(17,3)
  586. print("Yes")
  587. site = http.get("http://www.linuxos.vacau.com/programs/curv")
  588. update = site:readAll()
  589.  
  590. if update == cversion then
  591. term.setCursorPos(19,5)
  592. print("No")
  593. else
  594. term.setCursorPos(19,5)
  595. print("Yes")
  596. end
  597.  
  598. end
  599. term.setCursorPos(1,1)
  600. print("---[ Linux OS - System data ]-----------")
  601. print("I")
  602. print("I HTTP enabled: ")
  603. print("I OS version: ")
  604. print("I Update avaible: ")
  605. print("I Press any key to continue")
  606. print("----------------------------------------")
  607. -- key detection
  608. event = os.pullEvent()
  609. if event == "key" or event == "char" then
  610. shell.run("loggedin")
  611. end
  612.  
  613.  
  614. ]])
  615. file : close()
  616.  
  617. --between file
  618. file = io.open("ucp", "w")
  619. file : write([[
  620. sleep(.1)
  621. term.clear()
  622. term.setCursorPos(1,1)
  623. print("---[ Linux OS - User CP ]---------------")
  624. print("I")
  625. print("I [1] Change password")
  626. print("I [2] Delete account NOT YET RELEASED")
  627. print("I [3] Go back")
  628. print("----------------------------------------")
  629. stop = false
  630. while not stop do
  631. event, char = os.pullEvent()
  632. if event == "key" and char == 2 then
  633. shell.run("ucp_cp")
  634. stop = true
  635. end
  636. --if event == "key" and char == 3 then
  637. --shell.run("ucp_dl")
  638. --stop = true
  639. --end
  640. if event == "key" and char == 4 then
  641. shell.run("loggedin")
  642. stop = true
  643. end
  644. end
  645. ]])
  646. file : close()
  647.  
  648. --between file
  649. file = io.open("ucp_cp", "w")
  650. file : write([[
  651. sleep(.1)
  652. function error()
  653. event = os.pullEvent()
  654. if event == "char" or event == "key" then
  655. shell.run("ucp_cp")
  656. end
  657. end
  658. term.clear()
  659. term.setCursorPos(1,1)
  660.  
  661. print("---[ Linux OS - Change password ]-------")
  662. print("I")
  663. print("I Currecent pass:")
  664. print("I New pass:")
  665. print("I Retype new pass: ")
  666. print("I Error:")
  667. print("I At any error press any key to continue")
  668. print("I")
  669. print("----------------------------------------")
  670.  
  671. --get data
  672. file = io.open("session", "r")
  673. sname = file : read()
  674. file : close()
  675.  
  676. file = io.open("db/users/pass/"..sname, "r")
  677. cpass = file : read()
  678. file : close()
  679. -- end data
  680. term.setCursorPos(19,3)
  681. cupass = read()
  682. term.setCursorPos(13,4)
  683. anpass = read()
  684. term.setCursorPos(20,5)
  685. bnpass = read()
  686.  
  687. if cupass == cpass then
  688. if anpass == bnpass then
  689. file = io.open("db/users/pass/"..sname, "w")
  690. file : write(anpass)
  691. file : close()
  692. shell.run("ucp")
  693. else
  694. term.setCursorPos(9,6)
  695. print("New passwords doesnt match")
  696. error()
  697. end
  698. else
  699. term.setCursorPos(9,6)
  700. print("Currecent password doesnt match")
  701. error()
  702. end
  703.  
  704. ]])
  705. file : close()
  706.  
  707. file = io.open("ap", "w")
  708. file : write([[
  709. sleep(.1)
  710. term.clear()
  711. term.setCursorPos(1,1)
  712. print("---[ Linux OS - Admin panel ]-----------")
  713. print("I")
  714. print("I [1] Block usernames")
  715. print("I [2] System data / update")
  716. print("I [3] Change levels")
  717. print("I [4] Maintenance")
  718. print("I [5] Change admin panel config")
  719. print("I [6] Back")
  720. print("I ")
  721. print("----------------------------------------")
  722.  
  723. stop = false
  724. while not stop do
  725. event , char = os.pullEvent()
  726. if event == "key" and char == 2 then
  727. shell.run("ap_bu")
  728. stop = true
  729. end
  730. if event == "key" and char == 3 then
  731. shell.run("ap_sdu")
  732. stop = true
  733. end
  734. if event == "key" and char == 4 then
  735. shell.run("ap_cl")
  736. stop = true
  737. end
  738. if event == "key" and char == 5 then
  739. stop = true
  740. end
  741. if event == "key" and char == 6 then
  742. shell.run("ap_con")
  743. stop = true
  744. end
  745. if event == "key" and char == 7 then
  746. shell.run("loggedin")
  747. stop = true
  748. end
  749. end
  750.  
  751. ]])
  752. file : close()
  753.  
  754.  
  755. file = io.open("ap_bu", "w")
  756. file : write([[
  757. sleep(.1)
  758. term.clear()
  759. term.setCursorPos(1,1)
  760. print("---[ Linux OS - Block user ]------------")
  761. print("I")
  762. print("I Username to block: ")
  763. print("I")
  764. print("I")
  765. print("----------------------------------------")
  766.  
  767. term.setCursorPos(22,3)
  768. ub = read()
  769.  
  770. file = io.open("db/users/blocked/"..ub, "w")
  771. file : write()
  772. file : close()
  773.  
  774. shell.run("ap")
  775.  
  776.  
  777. ]])
  778. file : close()
  779.  
  780. file = io.open("ap_cl", "w")
  781. file : write([[
  782. function error()
  783. event = os.pullEvent()
  784. if event == "char" or event == "key" then
  785. shell.run("ap_cl")
  786. end
  787. end
  788.  
  789. file = io.open("session", "r")
  790. cname = file : read()
  791. file : close()
  792.  
  793. file = io.open("db/users/level/"..cname, "r")
  794. clevel = file : read()
  795. file : close()
  796.  
  797. sleep(.1)
  798. term.clear()
  799. term.setCursorPos(1,1)
  800. print("---[ Linux OS - Change level ]----------")
  801. print("I")
  802. print("I Username: ")
  803. print("I To level: ")
  804. print("I Error:")
  805. print("I At any error press any key to continue")
  806. print("I")
  807. print("----------------------------------------")
  808.  
  809. term.setCursorPos(13,3)
  810. tname = read()
  811. term.setCursorPos(13,4)
  812. slevel = read()
  813. term.setCursorPos(10,5)
  814. if fs.exists("db/users/pass/"..tname) then
  815. if tname == cname then
  816. print("You cant change your own level")
  817. error()
  818. else
  819. if slevel>clevel then
  820. print("Target level too high")
  821. error()
  822. else
  823. file = io.open("db/users/level/"..tname, "w")
  824. file : write(slevel)
  825. file : close()
  826. shell.run("ap")
  827. end
  828. end
  829. else
  830. print("Username unknown")
  831. error()
  832. end
  833.  
  834. ]])
  835. file : close()
  836.  
  837. file = io.open("ap_con", "w")
  838. file : write([[
  839. sleep(.1)
  840. term.clear()
  841. term.setCursorPos(1,1)
  842. print("---[ Admin panel config ]---------------")
  843. print("I")
  844. print("I From what level: ")
  845. print("I")
  846. print("----------------------------------------")
  847.  
  848. term.setCursorPos(20,3)
  849. answer = read()
  850. ganswer = answer - 1
  851. file = io.open("db/sys/config/ap", "w")
  852. file : write(ganswer)
  853. file : close()
  854. shell.run("ap")
  855.  
  856. ]])
  857. file : close()
  858.  
  859. file = io.open("ap_sdu", "w")
  860. file : write([[
  861. if not http then
  862. term.setCursorPos(17,3)
  863. print("No")
  864. file = io.open("db/sys/version", "r")
  865. cver = file : read()
  866. file : close()
  867.  
  868. term.setCursorPos(22,4)
  869. print(cver)
  870.  
  871.  
  872. else
  873. siteone = http.get("http://www.linuxos.vacau.com/programs/curv")
  874. verone = siteone:readAll()
  875. sitetwo = http.get("http://www.linuxos.vacau.com/programs/losr")
  876. vertwo = sitetwo:readAll()
  877.  
  878. term.setCursorPos(17,3)
  879. print("Yes")
  880. file = io.open("db/sys/version", "r")
  881. cver = file : read()
  882. file : close()
  883. if vertwo == cver then
  884. term.setCursorPos(18,5)
  885. print("No")
  886. else
  887. term.setCursorPos(18,5)
  888. print("Yes")
  889. end
  890. term.setCursorPos(22,4)
  891. print(cver)
  892. term.setCursorPos(22,6)
  893. print(vertwo)
  894. term.setCursorPos(18,7)
  895. print(verone)
  896. end
  897.  
  898. -- End of all the shit o.0
  899. sleep(.1)
  900. term.setCursorPos(1,1)
  901. print("---[ Linux OS - S data / update ]-------")
  902. print("I")
  903. print("I Http enabled:")
  904. print("I Currecent version: ")
  905. print("I Update avaible")
  906. print("I Recommended build:")
  907. print("I Newest build")
  908. print("I")
  909. print("I If update, rec and newest build ")
  910. print("I are empty, then you need to put on")
  911. print("I the Http api")
  912. print("I")
  913. print("I [1] NOT YET ADDED")
  914. print("I [2] NOT YET ADDED")
  915. print("I [3] Exit")
  916. print("I")
  917. print("----------------------------------------")
  918.  
  919. stop = false
  920. while not stop do
  921. event, char = os.pullEvent()
  922. if event == "key" and char == 2 then
  923. updaten()
  924. stop = true
  925. end
  926. end
  927.  
  928. ]])
  929. file : close()
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement