Advertisement
Guest User

Untitled

a guest
Jun 5th, 2016
1,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 143.34 KB | None | 0 0
  1. {
  2. "D:bin",
  3. "{\
  4. \"F:GKSH\",\
  5. \"\\\"shell.run(\\\\\\\"/system/Programs/GKSH/gksh\\\\\\\")\\\"\",\
  6. \"F:NetCMD\",\
  7. \"\\\"shell.run(\\\\\\\"/system/Programs/NetDrv/NetCMD\\\\\\\")\\\"\",\
  8. \"F:preview-mode\",\
  9. \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  10. write(\\\\\\\"Press <Enter> to reboot\\\\\\\")\\\\\\\
  11. read()\\\\\\\
  12. os.reboot()\\\"\",\
  13. \"F:recovery\",\
  14. \"\\\"shell.run(\\\\\\\"/system/recovery\\\\\\\")\\\"\",\
  15. }",
  16. "D:boot",
  17. "{\
  18. \"D:Bootloaders\",\
  19. \"{\\\
  20. \\\"F:BootSelect\\\",\\\
  21. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  22. shell.run(\\\\\\\\\\\\\\\"cd /boot/Bootloaders\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  23. print(\\\\\\\\\\\\\\\"GRUB Boot Menu\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  24. print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  25. print(\\\\\\\\\\\\\\\"Select Bootloader:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  26. print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  27. os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/MenuAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  28. local a={\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Debian Recovery\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"CraftOS Mode\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Shutdown\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Reboot\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Settings\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Boot from floppy (run /disk/startup)\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\
  29. local gmn=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 1, 5)\\\\\\\\\\\\\\\
  30. os.unloadAPI(\\\\\\\\\\\\\\\"MenuAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  31. if gmn == 1 then shell.run(\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  32. end\\\\\\\\\\\\\\\
  33. if gmn == 2 then shell.run(\\\\\\\\\\\\\\\"Debian_Recovery\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  34. end\\\\\\\\\\\\\\\
  35. if gmn == 3 then shell.run(\\\\\\\\\\\\\\\"CraftOS\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  36. end\\\\\\\\\\\\\\\
  37. if gmn == 4 then os.shutdown()\\\\\\\\\\\\\\\
  38. end\\\\\\\\\\\\\\\
  39. if gmn == 5 then os.reboot()\\\\\\\\\\\\\\\
  40. end\\\\\\\\\\\\\\\
  41. if gmn == 6 then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  42. end\\\\\\\\\\\\\\\
  43. if gmn==7 then \\\\\\\\\\\\\\\
  44. if fs.exists(\\\\\\\\\\\\\\\"/disk/startup\\\\\\\\\\\\\\\") then shell.run(\\\\\\\\\\\\\\\"/disk/startup\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
  45. else\\\\\\\\\\\\\\\
  46. print(\\\\\\\\\\\\\\\"No startup file on disk!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  47. sleep(0.5)\\\\\\\\\\\\\\\
  48. os.reboot()\\\\\\\\\\\\\\\
  49. end\\\\\\\\\\\\\\\
  50. end\\\\\\\"\\\",\\\
  51. \\\"F:CraftOS\\\",\\\
  52. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"cd /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  53. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  54. shell.run(\\\\\\\\\\\\\\\"shell\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  55. shell.run(\\\\\\\\\\\\\\\"shutdown\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  56. \\\"F:Debian\\\",\\\
  57. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"/system/start\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  58. \\\"F:Debian_Recovery\\\",\\\
  59. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  60. print(\\\\\\\\\\\\\\\"Debian ComputerCraft Recovery Mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  61. sleep(1)\\\\\\\\\\\\\\\
  62. syscfg={\\\\\\\\\\\\\\\
  63. autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  64. computername=\\\\\\\\\\\\\\\"Debian-Recovery\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  65. defaultusername=\\\\\\\\\\\\\\\"recovery\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  66. }\\\\\\\\\\\\\\\
  67. debmode=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  68. os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/DebAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  69. login=\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  70. shell.run(\\\\\\\\\\\\\\\"/system/recovery\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  71. }\",\
  72. \"F:grub\",\
  73. \"\\\"if debmode==\\\\\\\"1\\\\\\\" then print(\\\\\\\"You can't start BootLoaders in Debian!\\\\\\\")\\\\\\\
  74. shell.run(config.shell)\\\\\\\
  75. end\\\\\\\
  76. print(\\\\\\\"ComputerCraft BootLoader\\\\\\\")\\\\\\\
  77. sleep(1)\\\\\\\
  78. write(\\\\\\\"Reading properties file\\\\\\\")\\\\\\\
  79. sleep(0.1)\\\\\\\
  80. write(\\\\\\\".\\\\\\\")\\\\\\\
  81. sleep(0.1)\\\\\\\
  82. write(\\\\\\\".\\\\\\\")\\\\\\\
  83. os.loadAPI(\\\\\\\"/boot/grubcfg\\\\\\\")\\\\\\\
  84. sleep(0.1)\\\\\\\
  85. print(\\\\\\\".\\\\\\\")\\\\\\\
  86. if grubcfg.reqpasswd==\\\\\\\"1\\\\\\\" then passwdc=\\\\\\\"0\\\\\\\"\\\\\\\
  87. while true do\\\\\\\
  88. write(\\\\\\\"Enter boot password: \\\\\\\")\\\\\\\
  89. password=read(\\\\\\\"*\\\\\\\")\\\\\\\
  90. if password==grubcfg.bootpassword then print(\\\\\\\"Access granted, booting..\\\\\\\")\\\\\\\
  91. passwdc=\\\\\\\"1\\\\\\\"\\\\\\\
  92. break\\\\\\\
  93. end\\\\\\\
  94. if passwdc==\\\\\\\"0\\\\\\\" then print(\\\\\\\"Incorrect password, try again!\\\\\\\")\\\\\\\
  95. end\\\\\\\
  96. end\\\\\\\
  97. end\\\\\\\
  98. print(\\\\\\\"Current boot priority is \\\\\\\", grubcfg.bootpriority)\\\\\\\
  99. sleep(0.5)\\\\\\\
  100. print(\\\\\\\"Starting up \\\\\\\", grubcfg.bootpriority)\\\\\\\
  101. sleep(0.1)\\\\\\\
  102. shell.run(\\\\\\\"cd /boot/Bootloaders\\\\\\\")\\\\\\\
  103. shell.run(grubcfg.bootpriority)\\\"\",\
  104. \"F:grubcfg\",\
  105. \"\\\"reqpasswd=\\\\\\\"0\\\\\\\"\\\\\\\
  106. bootpassword=\\\\\\\"\\\\\\\"\\\\\\\
  107. bootpriority=\\\\\\\"Debian\\\\\\\"\\\"\",\
  108. \"F:grubsm\",\
  109. \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  110. print(\\\\\\\"GRUB Settings Menu\\\\\\\")\\\\\\\
  111. print(\\\\\\\"\\\\\\\")\\\\\\\
  112. os.loadAPI(\\\\\\\"/system/lib/MenuAPI\\\\\\\")\\\\\\\
  113. local a={\\\\\\\"Open GRUB Config file\\\\\\\", \\\\\\\"Edit MBR code\\\\\\\", \\\\\\\"Exit\\\\\\\"}\\\\\\\
  114. local gsus=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 1, 3)\\\\\\\
  115. os.unloadAPI(\\\\\\\"MenuAPI\\\\\\\")\\\\\\\
  116. if gsus==1 then shell.run(\\\\\\\"edit /boot/grubcfg\\\\\\\")\\\\\\\
  117. end\\\\\\\
  118. if gsus==2 then shell.run(\\\\\\\"edit /startup\\\\\\\")\\\\\\\
  119. end\\\\\\\
  120. if gsus==3 then shell.run(\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\")\\\\\\\
  121. end\\\\\\\
  122. shell.run(\\\\\\\"/boot/grubsm\\\\\\\")\\\"\",\
  123. }",
  124. "D:doc",
  125. "{\
  126. \"F:DebianCC\",\
  127. \"\\\"Debian CC is a my OS for ComputerCraft computers, with Debian Look,\\\\\\\
  128. CREATED JUST FOR FUN and make one distribution of needed software.\\\\\\\
  129. RePack by utkabobr 2015\\\\\\\
  130. Licensed under GNU General Pubic License v3 (see in file /doc/License)\\\\\\\
  131. Documentation of Debian CC\\\\\\\
  132. Author of software: MelnikovSM(RePack by utkabobr)\\\\\\\
  133. Warn! In that OS has included MenuAPI lib by 1Ridav. API is installed with the consent of the author.\\\\\\\
  134. System is free for use and OpenSource.\\\\\\\
  135. Archive (zipped by 1Ridav's archiver) with latest image of system you can found on MelnikovSM's PasteBin account:\\\\\\\
  136. http://pastebin.com/u/MelnikovSM2\\\\\\\
  137. dpkg installer programs can setup the components to which author I'm not. All author rights is reserved.\\\\\\\
  138. If you want to add new program to dpkg repository, send reqest with program ULR to my email: melnikovsm000@mail.ru\\\\\\\
  139. Help for DebAPI and MenuAPI:\\\\\\\
  140. DebAPI.error(\\\\\\\"Error text\\\\\\\") - return error with text \\\\\\\"Error text\\\\\\\"\\\\\\\
  141. DebAPI.shutdown() - shutdown computer\\\\\\\
  142. DebAPi.reboot() - reboot computer\\\\\\\
  143. DebAPi.clear() - clear screen\\\\\\\
  144. DebAPi.id - varrible with computer id\\\\\\\
  145. DebAPi.time - varrible with in game time\\\\\\\
  146. DebAPi.day - varrible with in game day\\\\\\\
  147. DebAPI.request(\\\\\\\"Complete this request\\\\\\\") show request Complete this request? (Y/n) and user must select; this returns true if user entered y or false if user entered n or nil if he not entered anywhere\\\\\\\
  148. DebAPI.getPath(\\\\\\\"file\\\\\\\") returns full path to entered file\\\\\\\
  149. MenuAPI.CreateMenu(array, active-state, inactive-state, pos_x, pos_y)\\\\\\\
  150. function returing selected button number\\\\\\\
  151. code example: \\\\\\\
  152. local a={\\\\\\\"Button 1\\\\\\\", \\\\\\\"Button 2\\\\\\\", \\\\\\\"Button3\\\\\\\"}\\\\\\\
  153. local select=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 3, 3)\\\\\\\
  154. if select=1 then print(\\\\\\\"You've pressed Button 1\\\\\\\") end\\\\\\\
  155. if select=2 then print(\\\\\\\"You've pressed Button 2\\\\\\\") end\\\\\\\
  156. if select=3 then print(\\\\\\\"You've pressed Button 3\\\\\\\") end\\\\\\\
  157. DialogAPI.select(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\", array_with_menu_options) makes semi-graphical window with reqest select option, returns option number\\\\\\\
  158. DialogAPI.enter(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\") show semi-graphical window with reqest enter anythink (set in discription), returns entered data(in string)\\\\\\\
  159. DialogAPI.enterPasswd(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\") show emi-graphical window with reqest enter secret data (for example: passwords) all entered symbols viewed as \\\\\\\"*\\\\\\\", returns entered data\\\\\\\
  160. DialogAPI.request(\\\\\\\"Title\\\\\\\", \\\\\\\"Description\\\\\\\") returns 1 if selected Yes or 2 if not\\\"\",\
  161. \"F:ReleaseNotes\",\
  162. \"\\\"Debian CC v0.3.6\\\\\\\
  163. Date of imaging: 09.10.2014\\\\\\\
  164. Changes:\\\\\\\
  165. * Added /etc/ dir use\\\\\\\
  166. * Added function request() to MenuAPI\\\\\\\
  167. * Added function request() and msg() to DialogAPI\\\\\\\
  168. * Advanced wget program\\\\\\\
  169. * Advanced libs loader\\\\\\\
  170. * Added black-white-only computers in DialogAPI\\\\\\\
  171. * dcc-configure and grub-configure now use DialogAPI\\\\\\\
  172. * motd and syscfg file are moved to /etc\\\\\\\
  173. * Added distro modifier file /etc/distro, file structure:\\\\\\\
  174. name=\\\\\\\"Name of Your distro\\\\\\\"\\\\\\\
  175. version=\\\\\\\"Version of Your distro\\\\\\\"\\\\\\\
  176. author=\\\\\\\"Name or Nickname of author\\\\\\\"\\\\\\\
  177. site=\\\\\\\"site of author or modifycation\\\\\\\"\\\\\\\
  178. * Added package manager pm and apt-get\\\\\\\
  179. * GPL license file are not included to distro\\\\\\\
  180. * Added make command\\\\\\\
  181. \\\\\\\
  182. UPDATE #1: 12.10.2014\\\\\\\
  183. \\\\\\\
  184. * Fixed apt-get errors.\\\\\\\
  185. * Added support for /etc/hostname\\\\\\\
  186. * Added hostname command\\\\\\\
  187. \\\\\\\
  188. UPDATE #2: 13.11.2014\\\\\\\
  189. \\\\\\\
  190. * Fixed log write API (DebAPI.writeLog(text)).\\\\\\\
  191. * Modified auth\\\\\\\
  192. \\\\\\\
  193. Version 0.3.7\\\\\\\
  194. Date of imaging: 19.03.2015\\\\\\\
  195. \\\\\\\
  196. * HTTP-API integration\\\\\\\
  197. \\\\\\\
  198. Version 0.3.8\\\\\\\
  199. Date of Imaging: 18.04.2015\\\\\\\
  200. \\\\\\\
  201. * apt-get fix\\\\\\\
  202. * default File Manager improvement\\\"\",\
  203. }",
  204. "D:home",
  205. "{\
  206. \"D:MelnikovSM\",\
  207. \"{\\\
  208. \\\"F:autorun\\\",\\\
  209. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  210. print(\\\\\\\\\\\\\\\"Hello, user. Welcome to Debian CC port by MelnikovSM(RePack by utkabobr).\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  211. print(\\\\\\\\\\\\\\\"Now you must configure your system.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  212. print(\\\\\\\\\\\\\\\"Press <s> and <Enter> to skip configuring.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  213. write(\\\\\\\\\\\\\\\"Press <Enter> to continue\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  214. local text=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  215. if text==\\\\\\\\\\\\\\\"s\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  216. shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  217. shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  218. print(\\\\\\\\\\\\\\\"You can configure your computer at anytime using command dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  219. else\\\\\\\\\\\\\\\
  220. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  221. shell.run(\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  222. sleep(1)\\\\\\\\\\\\\\\
  223. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  224. print(\\\\\\\\\\\\\\\"Computer will reboot now to complete configuring operation.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  225. write(\\\\\\\\\\\\\\\"Press <Enter> to reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  226. read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  227. shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  228. shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  229. os.reboot()\\\\\\\\\\\\\\\
  230. end\\\\\\\"\\\",\\\
  231. \\\"F:config\\\",\\\
  232. \\\"\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\
  233. password='Debian'\\\\\\\\\\\\\\\
  234. home='/home/MelnikovSM'\\\\\\\\\\\\\\\
  235. shell='/system/bin/sh'\\\\\\\"\\\",\\\
  236. }\",\
  237. }",
  238. "D:root",
  239. "{\
  240. \"F:autorun\",\
  241. \"\\\"--Paste your code here\\\"\",\
  242. \"F:config\",\
  243. \"\\\"passwdreq='1'\\\\\\\
  244. password='Debian'\\\\\\\
  245. home='/root'\\\\\\\
  246. shell='/system/bin/sh'\\\"\",\
  247. }",
  248. "F:startup",
  249. "\"if debmode==\\\"1\\\" then print(\\\"You can't start MBR binary on Debian\\\")\\\
  250. shell.run(usrshell)\\\
  251. end\\\
  252. peventback=os.pullEvent\\\
  253. os.pullEvent = os.pullEventRaw\\\
  254. shell.run(\\\"clear\\\")\\\
  255. print(\\\"Starting up MBR Code..\\\")\\\
  256. sleep(0.5)\\\
  257. shell.run(\\\"clear\\\")\\\
  258. shell.run(\\\"/boot/grub\\\")\"",
  259. "D:system",
  260. "{\
  261. \"D:Programs\",\
  262. \"{\\\
  263. \\\"D:GKSH\\\",\\\
  264. \\\"{\\\\\\\
  265. \\\\\\\"F:about\\\\\\\",\\\\\\\
  266. \\\\\\\"\\\\\\\\\\\\\\\"shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  267. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"System Information v0.1 by MelnikovSM(RePack by utkabobr):\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  268. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer Arch: ComputerCraft\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  269. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OS: Debian CC v0.3 Alpha\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  270. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer IDentifier: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  271. local id=os.getComputerID()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  272. print(id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  273. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer IP: 192.168.0.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  274. print(id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  275. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  276. print(login)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  277. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  278. print(config.password)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  279. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  280. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Press <Enter> to close.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  281. read()\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  282. \\\\\\\"F:gksh\\\\\\\",\\\\\\\
  283. \\\\\\\"\\\\\\\\\\\\\\\"local background=paintutils.loadImage(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/background\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  284. while true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  285. shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  286. a = {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Open Command line\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Settings\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"About\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Reboot\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Shutdown\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  287. paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  288. term.setCursorPos(1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  289. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC Graphical Menu v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  290. local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  291. if select==1 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  292. if select==2 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/GKSH/settings\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  293. if select==3 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/GKSH/about\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  294. if select==4 then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  295. if select==5 then DebAPI.reboot() end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  296. if select==6 then DebAPI.shutdown() end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  297. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  298. shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  299. \\\\\\\"F:settings\\\\\\\",\\\\\\\
  300. \\\\\\\"\\\\\\\\\\\\\\\"local background=paintutils.loadImage(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/background\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  301. while true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  302. shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  303. local a = {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run Debian CC Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run GRUB Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run Network Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Open Recovery Menu\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  304. paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  305. term.setCursorPos(1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  306. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC Settings Menu v0.3.5 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  307. local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  308. if select==1 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  309. if select==2 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/grub-configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  310. if select==3 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  311. if select==4 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/recovery\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  312. if select==5 then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  313. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  314. shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  315. }\\\",\\\
  316. \\\"D:NetDrv\\\",\\\
  317. \\\"{\\\\\\\
  318. \\\\\\\"F:NetCMD\\\\\\\",\\\\\\\
  319. \\\\\\\"\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  320. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Press help to get commands list\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  321. while true==true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  322. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  323. cmd=read()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  324. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  325. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  326. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  327. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD commands list:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  328. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"exit - exit from NetCMD\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  329. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"enable - enable rednet network functions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  330. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"disable - disable rednet network functions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  331. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"reload - reload rednet modem\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  332. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"config - open NetDrv config file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  333. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  334. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  335. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  336. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"enable\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  337. network.open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  338. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  339. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  340. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"disable\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  341. network.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  342. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  343. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  344. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"reload\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  345. network.restart()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  346. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  347. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  348. if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"config\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  349. shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  350. cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  351. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  352. if cmdcor==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Unknown command. Press <help> to get list of commands.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  353. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  354. end\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  355. \\\\\\\"F:configure\\\\\\\",\\\\\\\
  356. \\\\\\\"\\\\\\\\\\\\\\\"shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  357. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetDrv Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  358. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Select side of modem:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  359. local modemsides={\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"top\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"bottom\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"left\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"right\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  360. local select=MenuAPI.CreateMenu(modemsides, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  361. local side=modemsides[select]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  362. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Enable modem on boot? (Y/n) \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  363. enable=read()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  364. if enable==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  365. enable=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  366. else enable=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"false\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  367. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  368. local f=fs.open(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/netcfg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  369. local line1=(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"side='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" .. side .. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  370. local line2=(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"boot='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" .. enable .. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  371. f.writeLine(line1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  372. f.writeLine(line2)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  373. f.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  374. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  375. \\\\\\\"F:netcfg\\\\\\\",\\\\\\\
  376. \\\\\\\"\\\\\\\\\\\\\\\"side='top'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  377. boot='false'\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  378. \\\\\\\"F:network\\\\\\\",\\\\\\\
  379. \\\\\\\"\\\\\\\\\\\\\\\"id=os.getComputerID()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  380. side=netcfg.side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  381. boot=netcfg.boot\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  382. function open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  383. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Opening rednet modem at side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  384. write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  385. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  386. rednet.open(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  387. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  388. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  389. function close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  390. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Closing rednet moden at side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  391. write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  392. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  393. rednet.close(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  394. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  395. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  396. function restart()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  397. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Restarting rednet modem..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  398. network.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  399. network.open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  400. end\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  401. \\\\\\\"F:startup\\\\\\\",\\\\\\\
  402. \\\\\\\"\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Network Driver v0.1 for Debian CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  403. os.loadAPI(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/netcfg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  404. os.loadAPI(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/network\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  405. if network.boot==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  406. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Enabling network functions..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  407. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Opening rednet modem at side \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  408. write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  409. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  410. rednet.open(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  411. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  412. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  413. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Your computer identifier is \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  414. print(network.id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  415. write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Your computer IP is 192.168.0.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  416. print(network.id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  417. print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Network driver loaded successfuly.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  418. }\\\",\\\
  419. \\\"D:man\\\",\\\
  420. \\\"{\\\\\\\
  421. \\\\\\\"D:doc\\\\\\\",\\\\\\\
  422. \\\\\\\"{\\\\\\\\\\\\\\\
  423. \\\\\\\\\\\\\\\"F:.index\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  424. \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Welcome to Debian CC Manual software!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  425. Here you can get info about included commands.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  426. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  427. Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" without arguments for this page.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  428. Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" <help_page> for get help page with index \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"help_page\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  429. Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man Debian_CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" to get help about Debian CC Project.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  430. Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man ReleaseNotes\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" to get Debian CC Release Notes.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  431. \\\\\\\\\\\\\\\"F:DebianCC\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  432. \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC is a my OS for ComputerCraft computers,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  433. with Debian Look,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  434. CREATED JUST FOR FUN \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  435. and make one distribution of needed software.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  436. RePack by utkabobr 2015\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  437. Licensed under GNU General Pubic License v3 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  438. (see in file /doc/License)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  439. Documentation of Debian CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  440. Author of software: MelnikovSM\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  441. Warn! In that OS has included MenuAPI lib by 1Ridav. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  442. API is installed with the consent of the author.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  443. System is free for use and OpenSource.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  444. Archive (zipped by 1Ridav's archiver) with latest \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  445. image of system you can found on\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  446. MelnikovSM's PasteBin account:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  447. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  448. http://pastebin.com/u/MelnikovSM2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  449. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  450. dpkg installer programs can setup \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  451. the components to which author I'm not. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  452. All author rights is reserved.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  453. If you want to add new program to dpkg repository, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  454. send reqest with program ULR to my email: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  455. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  456. melnikovsm2@gmail.com\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  457. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  458. Help for DebAPI and MenuAPI:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  459. DebAPI.error(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Error text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") - return error \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  460. with text \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Error text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  461. DebAPI.shutdown() - shutdown computer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  462. DebAPi.reboot() - reboot computer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  463. DebAPi.clear() - clear screen\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  464. DebAPi.id - varrible with computer id\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  465. DebAPi.time - varrible with in game time\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  466. DebAPi.day - varrible with in game day\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  467. DebAPI.request(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Complete this request\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  468. show request Complete this request? (Y/n) and user \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  469. must select; this returns true if user entered y \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  470. or false if user entered n or nil if he not e\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  471. ntered anywhere\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  472. DebAPI.getPath(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") returns full path to \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  473. entered file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  474. MenuAPI.CreateMenu(array, active-state, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  475. inactive-state, pos_x, pos_y)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  476. function returing selected button number\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  477. code example: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  478. local a={\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  479. local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  480. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 3, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  481. if select=1 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  482. Button 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  483. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  484. if select=2 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  485. Button 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  486. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  487. if select=3 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  488. Button 3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  489. end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  490. DialogAPI.select(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  491. array_with_menu_options) makes semi-graphical \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  492. window with reqest select option, returns \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  493. option number\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  494. DialogAPI.enter(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") show \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  495. semi-graphical window with reqest enter \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  496. anythink (set in discription), returns \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  497. entered data(in string)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  498. DialogAPI.enterPasswd(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  499. show emi-graphical window with reqest enter secret \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  500. data (for example: passwords) all entered \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  501. symbols viewed as \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  502. returns entered data\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  503. DialogAPI.request(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Description\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") returns 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  504. if selected Yes or 2 if not\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  505. \\\\\\\\\\\\\\\"F:ReleaseNotes\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  506. \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC v0.3.5\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  507. Date of imaging: 09.10.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  508. Changes:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  509. * Added /etc/ dir use\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  510. * Added function request() to MenuAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  511. * Added function request() and msg() to DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  512. * Advanced wget program\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  513. * Advanced libs loader\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  514. * Added black-white-only computers in DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  515. * dcc-configure and grub-configure now use \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  516. DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  517. * motd and syscfg file are moved to /etc\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  518. * Added distro modifier file /etc/distro, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  519. file structure:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  520. name=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Name of Your distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  521. version=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Version of Your distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  522. author=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Name or Nickname of author\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  523. site=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"site of author or modifycation\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  524. * Added package manager pm and apt-get\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  525. * GPL license file are not included to distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  526. * Added make command\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  527. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  528. UPDATE #1: 12.10.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  529. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  530. * Fixed apt-get errors.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  531. * Added support for /etc/hostname\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  532. * Added hostname command\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  533. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  534. UPDATE #2: 13.11.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  535. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  536. * Fixed log write API (DebAPI.writeLog(text)).\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  537. * Modified auth\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  538. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  539. UPDATE #3: v0.3.6 at 23.11.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
  540. }\\\\\\\",\\\\\\\
  541. }\\\",\\\
  542. \\\"F:startup\\\",\\\
  543. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Loading startup programs..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  544. --This is a autorun file for Debian CC\\\\\\\\\\\\\\\
  545. --That can help for autoload drivers, utilities\\\\\\\\\\\\\\\
  546. --and other programs what must start pre loging in\\\\\\\\\\\\\\\
  547. shell.run(\\\\\\\\\\\\\\\"/system/Programs/NetDrv/startup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  548. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  549. }\",\
  550. \"F:auth\",\
  551. \"\\\"fauth=nil\\\\\\\
  552. syslogr=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  553. local all=syslogr.readAll()\\\\\\\
  554. syslogr.close()\\\\\\\
  555. syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  556. syslog.writeLine(all)\\\\\\\
  557. syslog.writeLine(\\\\\\\"Starting up auth..\\\\\\\")\\\\\\\
  558. if fs.exists(\\\\\\\"/etc/motd\\\\\\\")==false then fs.copy(\\\\\\\"/system/defaults/motd\\\\\\\", \\\\\\\"/etc/motd\\\\\\\") end\\\\\\\
  559. while true do\\\\\\\
  560. if syscfg.autologin==\\\\\\\"user\\\\\\\" then\\\\\\\
  561. syslog.writeLine(\\\\\\\"[Auth] Using Autologin.\\\\\\\")\\\\\\\
  562. print(\\\\\\\" \\\\\\\")\\\\\\\
  563. print(\\\\\\\"[Warning] Autologin enabled!\\\\\\\")\\\\\\\
  564. print(\\\\\\\"[Warning] That can take computer avilable for everyone.\\\\\\\")\\\\\\\
  565. print(\\\\\\\"[Warning] You can change it in file /system/syscfg\\\\\\\")\\\\\\\
  566. sleep(3)\\\\\\\
  567. os.loadAPI(\\\\\\\"/home/MelnikovSM/config\\\\\\\")\\\\\\\
  568. login=syscfg.defaultusername\\\\\\\
  569. shell.run(\\\\\\\"cd \\\\\\\", config.home)\\\\\\\
  570. shell.run(\\\\\\\"/system/bin/cat /etc/motd\\\\\\\")\\\\\\\
  571. local path=shell.path()\\\\\\\
  572. local path2=path .. \\\\\\\":/bin:/system/bin\\\\\\\"\\\\\\\
  573. shell.setPath(path2)\\\\\\\
  574. shell.run(\\\\\\\"/home/MelnikovSM/autorun\\\\\\\")\\\\\\\
  575. syslog.close()\\\\\\\
  576. \\\\\\\
  577. shell.run(config.shell)\\\\\\\
  578. DebAPI.shutdown()\\\\\\\
  579. end\\\\\\\
  580. if syscfg.autologin==\\\\\\\"none\\\\\\\" then\\\\\\\
  581. syslog.writeLine(\\\\\\\"[Auth] Using login.\\\\\\\")\\\\\\\
  582. if fauth==nil then \\\\\\\
  583. print(\\\\\\\" \\\\\\\")\\\\\\\
  584. print(distro.name .. \\\\\\\" \\\\\\\" .. distro.version .. \\\\\\\" \\\\\\\" .. syscfg.computername)\\\\\\\
  585. print(\\\\\\\" \\\\\\\")\\\\\\\
  586. fauth='d'\\\\\\\
  587. end\\\\\\\
  588. write(syscfg.computername)\\\\\\\
  589. write(\\\\\\\" login: \\\\\\\")\\\\\\\
  590. login = read()\\\\\\\
  591. syslog.writeLine(\\\\\\\"[Auth] Try to login as \\\\\\\" .. login)\\\\\\\
  592. usrcorr=\\\\\\\"0\\\\\\\"\\\\\\\
  593. if login == syscfg.defaultusername then\\\\\\\
  594. syslog.writeLine(\\\\\\\"[Auth] Try to login as default user\\\\\\\")\\\\\\\
  595. syslog.writeLine(\\\\\\\"[Auth] Loading user config..\\\\\\\")\\\\\\\
  596. os.loadAPI(\\\\\\\"/home/MelnikovSM/config\\\\\\\")\\\\\\\
  597. syslog.close()\\\\\\\
  598. shell.run(\\\\\\\"/system/auth2\\\\\\\")\\\\\\\
  599. usrcorr=\\\\\\\"1\\\\\\\"\\\\\\\
  600. end\\\\\\\
  601. if login==\\\\\\\"root\\\\\\\" then \\\\\\\
  602. syslog.writeLine(\\\\\\\"[Auth] Try to login as root.\\\\\\\")\\\\\\\
  603. syslog.close()\\\\\\\
  604. shell.run(\\\\\\\"/system/rootmode\\\\\\\")\\\\\\\
  605. usrcorr=\\\\\\\"1\\\\\\\"\\\\\\\
  606. end\\\\\\\
  607. if usrcorr==\\\\\\\"0\\\\\\\" then\\\\\\\
  608. syslog.writeLine(\\\\\\\"[Auth] Username incorrect!\\\\\\\")\\\\\\\
  609. print(\\\\\\\"Username incorrect, try again!\\\\\\\")\\\\\\\
  610. end\\\\\\\
  611. end\\\\\\\
  612. end\\\"\",\
  613. \"F:auth2\",\
  614. \"\\\"local syslogr=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  615. local syslogold=syslogr.readAll()\\\\\\\
  616. syslogr.close()\\\\\\\
  617. syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  618. syslog.writeLine(syslogold)\\\\\\\
  619. if config.passwdreq==\\\\\\\"1\\\\\\\" then\\\\\\\
  620. while true do\\\\\\\
  621. syslog.writeLine(\\\\\\\"[Auth] Reqesting user's password!\\\\\\\")\\\\\\\
  622. write(\\\\\\\"Password: \\\\\\\")\\\\\\\
  623. password2=read(\\\\\\\"*\\\\\\\")\\\\\\\
  624. syslog.writeLine(\\\\\\\"[Auth] Entered password\\\\\\\" .. password2)\\\\\\\
  625. if config.password==password2 then break\\\\\\\
  626. else \\\\\\\
  627. syslog.writeLine(\\\\\\\"[Auth] Enterd incorrect password!\\\\\\\")\\\\\\\
  628. print \\\\\\\"Incorrect Password, try again!\\\\\\\"\\\\\\\
  629. end\\\\\\\
  630. end\\\\\\\
  631. end\\\\\\\
  632. syslog.writeLine(\\\\\\\"[Auth] User \\\\\\\" .. login .. \\\\\\\" logged in.\\\\\\\")\\\\\\\
  633. shell.run(\\\\\\\"cd \\\\\\\", config.home)\\\\\\\
  634. shell.run(\\\\\\\"/system/bin/cat /etc/motd\\\\\\\")\\\\\\\
  635. if fs.exists(\\\\\\\"/etc/syscfg\\\\\\\")==false then print(\\\\\\\"[!] System configuration file is not founded. Please run dcc-configure to generate it!\\\\\\\") end\\\\\\\
  636. shell.run(\\\\\\\"autorun\\\\\\\")\\\\\\\
  637. syslog.writeLine(\\\\\\\"[Auth] Starting user shell..\\\\\\\")\\\\\\\
  638. local path=shell.path()\\\\\\\
  639. local path2=path .. \\\\\\\":/bin:/system/bin\\\\\\\"\\\\\\\
  640. shell.setPath(path2)\\\\\\\
  641. local defail=shell.run(config.shell)\\\\\\\
  642. if defail==false then\\\\\\\
  643. syslog.writeLine(\\\\\\\"[Fatal Error] Could'nt start user shell!\\\\\\\")\\\\\\\
  644. syslog.writeLine(\\\\\\\"Crash report:\\\\\\\")\\\\\\\
  645. syslog.writeLine(\\\\\\\"Shell: \\\\\\\" .. config.shell)\\\\\\\
  646. syslog.writeLine(\\\\\\\"System cannot continue runtime!\\\\\\\")\\\\\\\
  647. syslog.writeLine(\\\\\\\"Reboot required! Reboot in 10 sec.\\\\\\\")\\\\\\\
  648. shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  649. print(\\\\\\\"Debian CC Crash Report\\\\\\\")\\\\\\\
  650. print(\\\\\\\" \\\\\\\")\\\\\\\
  651. print(\\\\\\\"Debian CC Cannot start command promt.\\\\\\\")\\\\\\\
  652. print(\\\\\\\" \\\\\\\")\\\\\\\
  653. print(\\\\\\\"Debug info:\\\\\\\")\\\\\\\
  654. print(\\\\\\\"Shell: \\\\\\\" .. config.shell)\\\\\\\
  655. print(\\\\\\\" \\\\\\\")\\\\\\\
  656. print(\\\\\\\"If you seen that message after editing\\\\\\\")\\\\\\\
  657. print(\\\\\\\"~/config file you must check path to shell\\\\\\\")\\\\\\\
  658. print(\\\\\\\"or errors in your shell program.\\\\\\\")\\\\\\\
  659. print(\\\\\\\" \\\\\\\")\\\\\\\
  660. print(\\\\\\\"Reboot in 10 sec\\\\\\\")\\\\\\\
  661. sleep(10)\\\\\\\
  662. syslog.writeLine(\\\\\\\"[Info] Will now reboot.\\\\\\\")\\\\\\\
  663. syslog.close()\\\\\\\
  664. DebAPI.reboot()\\\\\\\
  665. end\\\\\\\
  666. syslog.writeLine(\\\\\\\"[Info] Will now halt\\\\\\\")\\\\\\\
  667. DebAPI.shutdown()\\\"\",\
  668. \"F:background\",\
  669. \"\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  670. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  671. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  672. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  673. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  674. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  675. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  676. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  677. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  678. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  679. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  680. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  681. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  682. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  683. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  684. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  685. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  686. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
  687. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\"\",\
  688. \"D:bin\",\
  689. \"{\\\
  690. \\\"F:about\\\",\\\
  691. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  692. print(distro.name .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. distro.version .. \\\\\\\\\\\\\\\" by \\\\\\\\\\\\\\\" .. distro.author)\\\\\\\\\\\\\\\
  693. print(\\\\\\\\\\\\\\\"Developer's web-site: \\\\\\\\\\\\\\\" .. distro.site)\\\\\\\\\\\\\\\
  694. print(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  695. print(\\\\\\\\\\\\\\\"Information about this computer:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  696. if term.isColour()==true and turtle==nil then\\\\\\\\\\\\\\\
  697. print(\\\\\\\\\\\\\\\"Platform Arch: Advanced Computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  698. elseif term.isColour()==false and turtle==nil then\\\\\\\\\\\\\\\
  699. print(\\\\\\\\\\\\\\\"Platform Arch: Default Computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  700. elseif term.isColour()==false and not turtle==nil then\\\\\\\\\\\\\\\
  701. print(\\\\\\\\\\\\\\\"Platform Arch: Default Turlte\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  702. elseif term.isColour() and not turtle==nil then\\\\\\\\\\\\\\\
  703. print(\\\\\\\\\\\\\\\"Platform Arch: Advanced Turtle\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  704. end\\\\\\\\\\\\\\\
  705. print(\\\\\\\\\\\\\\\"OS: Debian ComputerCraft\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  706. print(\\\\\\\\\\\\\\\"Current User: \\\\\\\\\\\\\\\", login)\\\\\\\\\\\\\\\
  707. print(\\\\\\\\\\\\\\\"Computer IP: 192.168.0.\\\\\\\\\\\\\\\", DebAPI.id)\\\\\\\"\\\",\\\
  708. \\\"F:apt-get\\\",\\\
  709. \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
  710. if #args==2 or #args==1 then\\\\\\\\\\\\\\\
  711. if args[1]==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  712. shell.run(\\\\\\\\\\\\\\\"pm list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  713. elseif args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  714. if args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" and args[2]==nil then\\\\\\\\\\\\\\\
  715. print(\\\\\\\\\\\\\\\"Usage: apt-get install <package name>\\\\\\\\\\\\\\\") else\\\\\\\\\\\\\\\
  716. local repo=\\\\\\\\\\\\\\\"http://debiancc.melnikovsm.tk/packages/\\\\\\\\\\\\\\\" --repository\\\\\\\\\\\\\\\
  717. local debpath=(\\\\\\\\\\\\\\\"/tmp/\\\\\\\\\\\\\\\" .. math.random(0000, 9999) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  718. shell.run(\\\\\\\\\\\\\\\"wget \\\\\\\\\\\\\\\" .. repo .. args[2] .. \\\\\\\\\\\\\\\".deb --full-path \\\\\\\\\\\\\\\" .. debpath)\\\\\\\\\\\\\\\
  719. shell.run(\\\\\\\\\\\\\\\"pm install \\\\\\\\\\\\\\\" .. debpath)\\\\\\\\\\\\\\\
  720. DebAPI.clearCache() end\\\\\\\\\\\\\\\
  721. elseif args[1]==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  722. if args[2]==nil then\\\\\\\\\\\\\\\
  723. print(\\\\\\\\\\\\\\\"Usage apt-get remove <package index>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  724. else shell.run(\\\\\\\\\\\\\\\"pm remove \\\\\\\\\\\\\\\" .. args[2]) end\\\\\\\\\\\\\\\
  725. else print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  726. print(\\\\\\\\\\\\\\\"apt-get list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  727. print(\\\\\\\\\\\\\\\"apt-get install <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  728. print(\\\\\\\\\\\\\\\"apt-get remove <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  729. end\\\\\\\\\\\\\\\
  730. end\\\\\\\"\\\",\\\
  731. \\\"F:archiver\\\",\\\
  732. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Archiver v0.1 by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  733. tArgs = {...}\\\\\\\\\\\\\\\
  734. local function getPath(input)\\\\\\\\\\\\\\\
  735. if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
  736. path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
  737. return path\\\\\\\\\\\\\\\
  738. end\\\\\\\\\\\\\\\
  739. if tArgs[2] then\\\\\\\\\\\\\\\
  740. tArgs[2]=getPath(tArgs[2])\\\\\\\\\\\\\\\
  741. end\\\\\\\\\\\\\\\
  742. \\\\\\\\\\\\\\\
  743. local FFormat = \\\\\\\\\\\\\\\".arch\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  744. local nFile, nDir, size = 0, 0\\\\\\\\\\\\\\\
  745. \\\\\\\\\\\\\\\
  746. if #tArgs < 3 then \\\\\\\\\\\\\\\
  747. print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  748. ..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\narchive zip <DIR> <ZIPname> <DIRtoSkip>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  749. ..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\narchive unzip <ZIPname> <DIR>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  750. end\\\\\\\\\\\\\\\
  751. \\\\\\\\\\\\\\\
  752. local function fopen(path, mode)\\\\\\\\\\\\\\\
  753. local f = fs.open(path, mode)\\\\\\\\\\\\\\\
  754. if not f then \\\\\\\\\\\\\\\
  755. print(\\\\\\\\\\\\\\\"ERROR: Could not open \\\\\\\\\\\\\\\"..path..\\\\\\\\\\\\\\\" with mode \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"..mode..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  756. exit()\\\\\\\\\\\\\\\
  757. end\\\\\\\\\\\\\\\
  758. return f\\\\\\\\\\\\\\\
  759. end\\\\\\\\\\\\\\\
  760. \\\\\\\\\\\\\\\
  761. local function skip(df)\\\\\\\\\\\\\\\
  762. for i = 3, #tArgs do\\\\\\\\\\\\\\\
  763. if tArgs[i] == fs.getName(df) then\\\\\\\\\\\\\\\
  764. return true\\\\\\\\\\\\\\\
  765. end\\\\\\\\\\\\\\\
  766. end\\\\\\\\\\\\\\\
  767. return false\\\\\\\\\\\\\\\
  768. end\\\\\\\\\\\\\\\
  769. \\\\\\\\\\\\\\\
  770. local function zip(file)\\\\\\\\\\\\\\\
  771. print(\\\\\\\\\\\\\\\"zipping: \\\\\\\\\\\\\\\".. file)\\\\\\\\\\\\\\\
  772. local f = fopen(file, \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  773. local z = textutils.serialize(f.readAll())\\\\\\\\\\\\\\\
  774. f.close()\\\\\\\\\\\\\\\
  775. return z\\\\\\\\\\\\\\\
  776. end\\\\\\\\\\\\\\\
  777. \\\\\\\\\\\\\\\
  778. local function ZIP(path)\\\\\\\\\\\\\\\
  779. local list = fs.list(path)\\\\\\\\\\\\\\\
  780. local array = {}\\\\\\\\\\\\\\\
  781. local t, name, d = 0, \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\", 0\\\\\\\\\\\\\\\
  782. \\\\\\\\\\\\\\\
  783. for i = 2, #list * 2, 2 do\\\\\\\\\\\\\\\
  784. t = i/2\\\\\\\\\\\\\\\
  785. local tpath = path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
  786. if fs.isDir(tpath) then\\\\\\\\\\\\\\\
  787. if not skip(tpath) then\\\\\\\\\\\\\\\
  788. name = \\\\\\\\\\\\\\\"D:\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
  789. array[i] = ZIP(tpath)\\\\\\\\\\\\\\\
  790. nDir = nDir + 1\\\\\\\\\\\\\\\
  791. end\\\\\\\\\\\\\\\
  792. else\\\\\\\\\\\\\\\
  793. name = \\\\\\\\\\\\\\\"F:\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
  794. array[i] = zip(tpath)\\\\\\\\\\\\\\\
  795. nFile = nFile + 1\\\\\\\\\\\\\\\
  796. end\\\\\\\\\\\\\\\
  797. array[i - 1] = name\\\\\\\\\\\\\\\
  798. end\\\\\\\\\\\\\\\
  799. \\\\\\\\\\\\\\\
  800. return textutils.serialize(array)\\\\\\\\\\\\\\\
  801. end\\\\\\\\\\\\\\\
  802. \\\\\\\\\\\\\\\
  803. local function unzip(text, path)\\\\\\\\\\\\\\\
  804. print(\\\\\\\\\\\\\\\"unzipping: \\\\\\\\\\\\\\\"..path)\\\\\\\\\\\\\\\
  805. local f = fopen(path, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  806. f.write(textutils.unserialize(text))\\\\\\\\\\\\\\\
  807. f.close()\\\\\\\\\\\\\\\
  808. end\\\\\\\\\\\\\\\
  809. \\\\\\\\\\\\\\\
  810. local function UNZIP(text, path)\\\\\\\\\\\\\\\
  811. local array = textutils.unserialize(text)\\\\\\\\\\\\\\\
  812. local unz, dp\\\\\\\\\\\\\\\
  813. local d = 0\\\\\\\\\\\\\\\
  814. for i = 2, #array, 2 do\\\\\\\\\\\\\\\
  815. if string.sub(array[i-1], 1, 1) == \\\\\\\\\\\\\\\"D\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  816. dp = string.sub(array[i-1], 3, #array[i-1])\\\\\\\\\\\\\\\
  817. fs.makeDir(path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..dp)\\\\\\\\\\\\\\\
  818. UNZIP(array[i], path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..dp)\\\\\\\\\\\\\\\
  819. nDir = nDir + 1\\\\\\\\\\\\\\\
  820. elseif string.sub(array[i-1], 1, 1) == \\\\\\\\\\\\\\\"F\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  821. local p = string.sub(array[i-1], 3, #array[i-1])\\\\\\\\\\\\\\\
  822. unzip(array[i], path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..p)\\\\\\\\\\\\\\\
  823. nFile = nFile + 1\\\\\\\\\\\\\\\
  824. end\\\\\\\\\\\\\\\
  825. end\\\\\\\\\\\\\\\
  826. end\\\\\\\\\\\\\\\
  827. \\\\\\\\\\\\\\\
  828. local function result()\\\\\\\\\\\\\\\
  829. print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\nDone\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  830. ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n size: \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  831. ,size, \\\\\\\\\\\\\\\" B \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  832. ,math.floor(size/1024), \\\\\\\\\\\\\\\" KB\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  833. ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n Files: \\\\\\\\\\\\\\\", nFile\\\\\\\\\\\\\\\
  834. ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n Folders: \\\\\\\\\\\\\\\", nDir\\\\\\\\\\\\\\\
  835. )\\\\\\\\\\\\\\\
  836. end\\\\\\\\\\\\\\\
  837. \\\\\\\\\\\\\\\
  838. if tArgs[1] == \\\\\\\\\\\\\\\"zip\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  839. if fs.exists(tArgs[2]) and fs.isDir(tArgs[2]) then\\\\\\\\\\\\\\\
  840. local zipped = ZIP(shell.resolve(tArgs[2]))\\\\\\\\\\\\\\\
  841. local f = fs.open(tArgs[3]..FFormat, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  842. f.write(zipped)\\\\\\\\\\\\\\\
  843. f.close()\\\\\\\\\\\\\\\
  844. zipped = nil\\\\\\\\\\\\\\\
  845. size = fs.getSize(tArgs[3]..FFormat)\\\\\\\\\\\\\\\
  846. result() \\\\\\\\\\\\\\\
  847. end\\\\\\\\\\\\\\\
  848. \\\\\\\\\\\\\\\
  849. elseif tArgs[1] == \\\\\\\\\\\\\\\"unzip\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  850. local f = fopen(tArgs[2], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  851. if not fs.exists(tArgs[3]) then \\\\\\\\\\\\\\\
  852. fs.makeDir(tArgs[3]) \\\\\\\\\\\\\\\
  853. end\\\\\\\\\\\\\\\
  854. UNZIP(f.readAll(), tArgs[3])\\\\\\\\\\\\\\\
  855. size = fs.getSize(tArgs[2])\\\\\\\\\\\\\\\
  856. result()\\\\\\\\\\\\\\\
  857. end\\\\\\\"\\\",\\\
  858. \\\"F:autorun-disk\\\",\\\
  859. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Disk autorun file launcher v0.1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  860. while true do\\\\\\\\\\\\\\\
  861. write(\\\\\\\\\\\\\\\"Are you want to open disk file?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  862. local switch=read()\\\\\\\\\\\\\\\
  863. if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
  864. local cor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  865. local cor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  866. break \\\\\\\\\\\\\\\
  867. end\\\\\\\\\\\\\\\
  868. if switch==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
  869. local cor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  870. break\\\\\\\\\\\\\\\
  871. end\\\\\\\\\\\\\\\
  872. if cor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Unexperted nomber! Press enter <Y> or <n>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  873. end\\\\\\\\\\\\\\\
  874. end\\\\\\\\\\\\\\\
  875. if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  876. print(\\\\\\\\\\\\\\\"Loading..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  877. shell.run(\\\\\\\\\\\\\\\"/disk/autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  878. end\\\\\\\\\\\\\\\
  879. if switch==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  880. print(\\\\\\\\\\\\\\\"Terminated by User!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  881. end\\\\\\\"\\\",\\\
  882. \\\"F:backup\\\",\\\
  883. \\\"\\\\\\\"if false==fs.exists(\\\\\\\\\\\\\\\"/var/backup\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  884. shell.run(\\\\\\\\\\\\\\\"mkdir /var/backup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  885. end\\\\\\\\\\\\\\\
  886. print(\\\\\\\\\\\\\\\"Debian CC Backup Tool by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  887. print(\\\\\\\\\\\\\\\"Backup Tool using Archiver by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  888. print(\\\\\\\\\\\\\\\"Enter name of this image:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  889. bname=read()\\\\\\\\\\\\\\\
  890. command=(\\\\\\\\\\\\\\\"/system/bin/archiver zip / /var/backup/\\\\\\\\\\\\\\\" .. bname .. \\\\\\\\\\\\\\\" rom tmp treasure backup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  891. print(\\\\\\\\\\\\\\\"Saving backup image us /var/backup/\\\\\\\\\\\\\\\", bname)\\\\\\\\\\\\\\\
  892. shell.run(command)\\\\\\\\\\\\\\\
  893. print(\\\\\\\\\\\\\\\"Computer image successfuly saved as \\\\\\\\\\\\\\\", bname)\\\\\\\"\\\",\\\
  894. \\\"F:bash\\\",\\\
  895. \\\"\\\\\\\"local historyfile=fs.open(config.home ..\\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  896. local history={}\\\\\\\\\\\\\\\
  897. if fs.exists(config.home .. \\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\")==true then\\\\\\\\\\\\\\\
  898. local hr=fs.open(config.home .. \\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  899. while true do\\\\\\\\\\\\\\\
  900. insert=hr.readLine()\\\\\\\\\\\\\\\
  901. if insert==nil then break end\\\\\\\\\\\\\\\
  902. table.insert(history, insert)\\\\\\\\\\\\\\\
  903. end\\\\\\\\\\\\\\\
  904. end\\\\\\\\\\\\\\\
  905. while true do\\\\\\\\\\\\\\\
  906. sush=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  907. if (\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())==config.home then\\\\\\\\\\\\\\\
  908. upath=\\\\\\\\\\\\\\\"~\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  909. else\\\\\\\\\\\\\\\
  910. upath=fs.getName(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" ..shell.dir())\\\\\\\\\\\\\\\
  911. end\\\\\\\\\\\\\\\
  912. if login==\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  913. write(login .. \\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\" .. upath .. \\\\\\\\\\\\\\\" # \\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
  914. sush=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  915. else\\\\\\\\\\\\\\\
  916. write(login .. \\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\" .. upath .. \\\\\\\\\\\\\\\" $ \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  917. end\\\\\\\\\\\\\\\
  918. local command = read(nil, history)\\\\\\\\\\\\\\\
  919. historyfile.writeLine(command)\\\\\\\\\\\\\\\
  920. table.insert(history, command)\\\\\\\\\\\\\\\
  921. \\\\\\\\\\\\\\\
  922. shcor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  923. if command==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
  924. historyfile.close()\\\\\\\\\\\\\\\
  925. break\\\\\\\\\\\\\\\
  926. end\\\\\\\\\\\\\\\
  927. if command==\\\\\\\\\\\\\\\"su\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  928. shell.run(\\\\\\\\\\\\\\\"/system/rootmode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  929. end\\\\\\\\\\\\\\\
  930. if command==\\\\\\\\\\\\\\\"grubsm\\\\\\\\\\\\\\\" then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  931. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  932. end\\\\\\\\\\\\\\\
  933. if command==\\\\\\\\\\\\\\\"reboot --bs\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  934. debmode=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  935. shell.run(\\\\\\\\\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  936. end\\\\\\\\\\\\\\\
  937. if command==\\\\\\\\\\\\\\\"reboot --force\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  938. os.reboot()\\\\\\\\\\\\\\\
  939. end\\\\\\\\\\\\\\\
  940. if command==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  941. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  942. shell.run(\\\\\\\\\\\\\\\"/system/bin/help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  943. end\\\\\\\\\\\\\\\
  944. if command==\\\\\\\\\\\\\\\"about\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  945. shell.run(\\\\\\\\\\\\\\\"/system/bin/about\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  946. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  947. end\\\\\\\\\\\\\\\
  948. if command==\\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  949. print(path2)\\\\\\\\\\\\\\\
  950. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  951. end\\\\\\\\\\\\\\\
  952. if command==\\\\\\\\\\\\\\\"cd ~\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  953. shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\", config.home)\\\\\\\\\\\\\\\
  954. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  955. end\\\\\\\\\\\\\\\
  956. if command==\\\\\\\\\\\\\\\"7a\\\\\\\\\\\\\\\" then print('[Easter Egg] 7th \\\\\\\\\\\\\\\"A\\\\\\\\\\\\\\\" class at school No. 109 is a zoopark, circus and hell in one place.')\\\\\\\\\\\\\\\
  957. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
  958. if shcor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then shell.run(command)\\\\\\\\\\\\\\\
  959. end\\\\\\\\\\\\\\\
  960. end\\\\\\\"\\\",\\\
  961. \\\"F:browser\\\",\\\
  962. \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
  963. if #args==1 then\\\\\\\\\\\\\\\
  964. DebAPI.clearCache()\\\\\\\\\\\\\\\
  965. DebAPI.getFile(args[1], \\\\\\\\\\\\\\\"/tmp/browser\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  966. shell.run(\\\\\\\\\\\\\\\"edit /tmp/browser\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  967. DebAPI.clearCache()\\\\\\\\\\\\\\\
  968. else\\\\\\\\\\\\\\\
  969. print(\\\\\\\\\\\\\\\"Usage: browser <http://website.net/index.html>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  970. end\\\\\\\"\\\",\\\
  971. \\\"F:cat\\\",\\\
  972. \\\"\\\\\\\"arg = {...}\\\\\\\\\\\\\\\
  973. if #arg == 1 then\\\\\\\\\\\\\\\
  974. if fs.exists(arg[1])==true then\\\\\\\\\\\\\\\
  975. if fs.isDir(arg[1])==false then\\\\\\\\\\\\\\\
  976. local f=fs.open(arg[1], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  977. print(f.readAll())\\\\\\\\\\\\\\\
  978. f.close()\\\\\\\\\\\\\\\
  979. else\\\\\\\\\\\\\\\
  980. print(\\\\\\\\\\\\\\\"<Error> \\\\\\\\\\\\\\\", arg[1], \\\\\\\\\\\\\\\" is dir!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  981. end\\\\\\\\\\\\\\\
  982. else\\\\\\\\\\\\\\\
  983. print(\\\\\\\\\\\\\\\"<Error> No such file: \\\\\\\\\\\\\\\", arg[1])\\\\\\\\\\\\\\\
  984. end\\\\\\\\\\\\\\\
  985. else\\\\\\\\\\\\\\\
  986. print(\\\\\\\\\\\\\\\"Debian CC Viewer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  987. print(\\\\\\\\\\\\\\\"Usage: cat /path/to/file\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  988. end\\\\\\\"\\\",\\\
  989. \\\"F:dcc-configure\\\",\\\
  990. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Configurer by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  991. print(\\\\\\\\\\\\\\\"Configuring system..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  992. sleep(1)\\\\\\\\\\\\\\\
  993. args={...}\\\\\\\\\\\\\\\
  994. if args[1]==\\\\\\\\\\\\\\\"--gui\\\\\\\\\\\\\\\" or not args[1] then\\\\\\\\\\\\\\\
  995. \\\\\\\\\\\\\\\
  996. local hostname=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your computer name (hostname) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  997. local autologin=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enable user auto log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  998. local username=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your name (username) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  999. local useuserpasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Request password on log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1000. print(\\\\\\\\\\\\\\\"Enter user password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1001. while true do\\\\\\\\\\\\\\\
  1002. local password1=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1003. local password2=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Confirm your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1004. if password1==password2 then\\\\\\\\\\\\\\\
  1005. password=password1\\\\\\\\\\\\\\\
  1006. break\\\\\\\\\\\\\\\
  1007. else\\\\\\\\\\\\\\\
  1008. DebAPI.error(\\\\\\\\\\\\\\\"Passwords does not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1009. end\\\\\\\\\\\\\\\
  1010. end\\\\\\\\\\\\\\\
  1011. local promt=DialogAPI.select(\\\\\\\\\\\\\\\"Select Command Promt\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Name: Look:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"bash - user@hostname:~ $ _\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"sh - $\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
  1012. if promt==1 then promt=\\\\\\\\\\\\\\\"/system/bin/bash\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1013. else promt=\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
  1014. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1015. if hostname==\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1016. hostname=\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1017. end\\\\\\\\\\\\\\\
  1018. print(\\\\\\\\\\\\\\\"Please confirm your changes:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1019. print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1020. print(\\\\\\\\\\\\\\\"Hostname: \\\\\\\\\\\\\\\", hostname)\\\\\\\\\\\\\\\
  1021. print(\\\\\\\\\\\\\\\"Autologin: \\\\\\\\\\\\\\\", autologin)\\\\\\\\\\\\\\\
  1022. print(\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\", username)\\\\\\\\\\\\\\\
  1023. print(\\\\\\\\\\\\\\\"Use user password: \\\\\\\\\\\\\\\", useuserpasswd)\\\\\\\\\\\\\\\
  1024. print(\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\", password)\\\\\\\\\\\\\\\
  1025. print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1026. if hostname==\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1027. hostname=nil\\\\\\\\\\\\\\\
  1028. end\\\\\\\\\\\\\\\
  1029. local select=DebAPI.request(\\\\\\\\\\\\\\\"Confirm this changes\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1030. if select==true then\\\\\\\\\\\\\\\
  1031. if fs.exists(\\\\\\\\\\\\\\\"/etc/\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/etc\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1032. local f=fs.open(\\\\\\\\\\\\\\\"/etc/syscfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1033. if hostname==nil then\\\\\\\\\\\\\\\
  1034. hostname=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1035. end\\\\\\\\\\\\\\\
  1036. local line1=(\\\\\\\\\\\\\\\"computername='\\\\\\\\\\\\\\\" .. hostname .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1037. local line2=(\\\\\\\\\\\\\\\"defaultusername='\\\\\\\\\\\\\\\" .. username .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1038. if autologin==1 then\\\\\\\\\\\\\\\
  1039. autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1040. else\\\\\\\\\\\\\\\
  1041. autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1042. end\\\\\\\\\\\\\\\
  1043. local line3=(\\\\\\\\\\\\\\\"autologin='\\\\\\\\\\\\\\\" .. autologin .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1044. f.writeLine(line1)\\\\\\\\\\\\\\\
  1045. f.writeLine(line2)\\\\\\\\\\\\\\\
  1046. f.writeLine(line3)\\\\\\\\\\\\\\\
  1047. f.close()\\\\\\\\\\\\\\\
  1048. f=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
  1049. f.writeLine(hostname)\\\\\\\\\\\\\\\
  1050. f.close()\\\\\\\\\\\\\\\
  1051. f=fs.open(\\\\\\\\\\\\\\\"/root/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1052. if useuserpasswd==1 then\\\\\\\\\\\\\\\
  1053. line1=(\\\\\\\\\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1054. else\\\\\\\\\\\\\\\
  1055. line1=(\\\\\\\\\\\\\\\"passwdreq='0'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1056. end\\\\\\\\\\\\\\\
  1057. line2=(\\\\\\\\\\\\\\\"password='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1058. line3=\\\\\\\\\\\\\\\"home='/root'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1059. line4=\\\\\\\\\\\\\\\"shell='\\\\\\\\\\\\\\\" .. promt .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1060. f.writeLine(line1)\\\\\\\\\\\\\\\
  1061. f.writeLine(line2)\\\\\\\\\\\\\\\
  1062. f.writeLine(line3)\\\\\\\\\\\\\\\
  1063. f.writeLine(line4)\\\\\\\\\\\\\\\
  1064. f.close()\\\\\\\\\\\\\\\
  1065. f=fs.open(\\\\\\\\\\\\\\\"/home/MelnikovSM/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1066. line3=\\\\\\\\\\\\\\\"home='/home/MelnikovSM'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1067. f.writeLine(line1)\\\\\\\\\\\\\\\
  1068. f.writeLine(line2)\\\\\\\\\\\\\\\
  1069. f.writeLine(line3)\\\\\\\\\\\\\\\
  1070. f.writeLine(line4)\\\\\\\\\\\\\\\
  1071. f.close()\\\\\\\\\\\\\\\
  1072. print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1073. else\\\\\\\\\\\\\\\
  1074. print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1075. end\\\\\\\\\\\\\\\
  1076. elseif args[1]==\\\\\\\\\\\\\\\"--text\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1077. write(\\\\\\\\\\\\\\\"Enter your computer name (hostname) : \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1078. local hostname=read()\\\\\\\\\\\\\\\
  1079. local autologin=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enable user auto log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1080. local username=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your name (username) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1081. local useuserpasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Request password on log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1082. print(\\\\\\\\\\\\\\\"Enter user password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1083. while true do\\\\\\\\\\\\\\\
  1084. local password1=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1085. local password2=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Confirm your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1086. if password1==password2 then\\\\\\\\\\\\\\\
  1087. password=password1\\\\\\\\\\\\\\\
  1088. break\\\\\\\\\\\\\\\
  1089. else\\\\\\\\\\\\\\\
  1090. DebAPI.error(\\\\\\\\\\\\\\\"Passwords does not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1091. end\\\\\\\\\\\\\\\
  1092. end\\\\\\\\\\\\\\\
  1093. local promt=DialogAPI.select(\\\\\\\\\\\\\\\"Select Command Promt\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Name: Look:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"bash - user@hostname:~ $ _\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"sh - $\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
  1094. if promt==1 then promt=\\\\\\\\\\\\\\\"/system/bin/bash\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1095. else promt=\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
  1096. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1097. if hostname==\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1098. hostname=\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1099. end\\\\\\\\\\\\\\\
  1100. print(\\\\\\\\\\\\\\\"Please confirm your changes:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1101. print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1102. print(\\\\\\\\\\\\\\\"Hostname: \\\\\\\\\\\\\\\", hostname)\\\\\\\\\\\\\\\
  1103. print(\\\\\\\\\\\\\\\"Autologin: \\\\\\\\\\\\\\\", autologin)\\\\\\\\\\\\\\\
  1104. print(\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\", username)\\\\\\\\\\\\\\\
  1105. print(\\\\\\\\\\\\\\\"Use user password: \\\\\\\\\\\\\\\", useuserpasswd)\\\\\\\\\\\\\\\
  1106. print(\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\", password)\\\\\\\\\\\\\\\
  1107. print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1108. if hostname==\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1109. hostname=nil\\\\\\\\\\\\\\\
  1110. end\\\\\\\\\\\\\\\
  1111. local select=DebAPI.request(\\\\\\\\\\\\\\\"Confirm this changes\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1112. if select==true then\\\\\\\\\\\\\\\
  1113. if fs.exists(\\\\\\\\\\\\\\\"/etc/\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/etc\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1114. local f=fs.open(\\\\\\\\\\\\\\\"/etc/syscfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1115. if hostname==nil then\\\\\\\\\\\\\\\
  1116. hostname=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1117. end\\\\\\\\\\\\\\\
  1118. local line1=(\\\\\\\\\\\\\\\"computername='\\\\\\\\\\\\\\\" .. hostname .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1119. local line2=(\\\\\\\\\\\\\\\"defaultusername='\\\\\\\\\\\\\\\" .. username .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1120. if autologin==1 then\\\\\\\\\\\\\\\
  1121. autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1122. else\\\\\\\\\\\\\\\
  1123. autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1124. end\\\\\\\\\\\\\\\
  1125. local line3=(\\\\\\\\\\\\\\\"autologin='\\\\\\\\\\\\\\\" .. autologin .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1126. f.writeLine(line1)\\\\\\\\\\\\\\\
  1127. f.writeLine(line2)\\\\\\\\\\\\\\\
  1128. f.writeLine(line3)\\\\\\\\\\\\\\\
  1129. f.close()\\\\\\\\\\\\\\\
  1130. f=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
  1131. f.writeLine(hostname)\\\\\\\\\\\\\\\
  1132. f.close()\\\\\\\\\\\\\\\
  1133. f=fs.open(\\\\\\\\\\\\\\\"/root/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1134. if useuserpasswd==1 then\\\\\\\\\\\\\\\
  1135. line1=(\\\\\\\\\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1136. else\\\\\\\\\\\\\\\
  1137. line1=(\\\\\\\\\\\\\\\"passwdreq='0'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1138. end\\\\\\\\\\\\\\\
  1139. line2=(\\\\\\\\\\\\\\\"password='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1140. line3=\\\\\\\\\\\\\\\"home='/root'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1141. line4=\\\\\\\\\\\\\\\"shell='\\\\\\\\\\\\\\\" .. promt .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1142. f.writeLine(line1)\\\\\\\\\\\\\\\
  1143. f.writeLine(line2)\\\\\\\\\\\\\\\
  1144. f.writeLine(line3)\\\\\\\\\\\\\\\
  1145. f.writeLine(line4)\\\\\\\\\\\\\\\
  1146. f.close()\\\\\\\\\\\\\\\
  1147. f=fs.open(\\\\\\\\\\\\\\\"/home/MelnikovSM/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1148. line3=\\\\\\\\\\\\\\\"home='/home/MelnikovSM'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1149. f.writeLine(line1)\\\\\\\\\\\\\\\
  1150. f.writeLine(line2)\\\\\\\\\\\\\\\
  1151. f.writeLine(line3)\\\\\\\\\\\\\\\
  1152. f.writeLine(line4)\\\\\\\\\\\\\\\
  1153. f.close()\\\\\\\\\\\\\\\
  1154. print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1155. else\\\\\\\\\\\\\\\
  1156. print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1157. end\\\\\\\\\\\\\\\
  1158. end\\\\\\\"\\\",\\\
  1159. \\\"F:dmesg\\\",\\\
  1160. \\\"\\\\\\\"if not syslog==nil then\\\\\\\\\\\\\\\
  1161. syslog.close()\\\\\\\\\\\\\\\
  1162. end\\\\\\\\\\\\\\\
  1163. shell.run(\\\\\\\\\\\\\\\"/system/bin/cat /var/syslog\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  1164. \\\"F:dpkg\\\",\\\
  1165. \\\"\\\\\\\"if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==true then\\\\\\\\\\\\\\\
  1166. shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1167. shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1168. end\\\\\\\\\\\\\\\
  1169. if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==false then\\\\\\\\\\\\\\\
  1170. shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1171. end\\\\\\\\\\\\\\\
  1172. print(\\\\\\\\\\\\\\\"Debian CC Packages manager v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1173. print(\\\\\\\\\\\\\\\"Use <help> to get help.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1174. while true do\\\\\\\\\\\\\\\
  1175. write(\\\\\\\\\\\\\\\"DPKG-CC> \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1176. local cmd=read()\\\\\\\\\\\\\\\
  1177. cmdcor=0\\\\\\\\\\\\\\\
  1178. if cmd==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1179. cmdcor=1\\\\\\\\\\\\\\\
  1180. break\\\\\\\\\\\\\\\
  1181. end\\\\\\\\\\\\\\\
  1182. if cmd==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1183. print(\\\\\\\\\\\\\\\"Avilable commands:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1184. print(\\\\\\\\\\\\\\\"install <package> - install package <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1185. print(\\\\\\\\\\\\\\\"install other - install programs from pastebin*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1186. print(\\\\\\\\\\\\\\\"* - that's just copy file from pastebin to /bin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1187. print(\\\\\\\\\\\\\\\"remove <package> - remove package <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1188. print(\\\\\\\\\\\\\\\"list - packages list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1189. print(\\\\\\\\\\\\\\\"update - update packages list (dpkg restart required)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1190. print(\\\\\\\\\\\\\\\"exit - exit from DPKG\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1191. cmdcor=1\\\\\\\\\\\\\\\
  1192. end\\\\\\\\\\\\\\\
  1193. if cmd==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Usage: install <package>\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
  1194. cmdcor=1\\\\\\\\\\\\\\\
  1195. end\\\\\\\\\\\\\\\
  1196. if cmd==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1197. print(\\\\\\\\\\\\\\\"Avilable packages list:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1198. print(\\\\\\\\\\\\\\\"rft - rednet file transfer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1199. print(\\\\\\\\\\\\\\\"cftp - ftp client/server\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1200. print(\\\\\\\\\\\\\\\"ccchat - chat program\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1201. print(\\\\\\\\\\\\\\\"lemonfm - touch file manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1202. print(\\\\\\\\\\\\\\\"mc - file manager with Norton Commander skin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1203. print(\\\\\\\\\\\\\\\"rc - remote control tool\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1204. print(\\\\\\\\\\\\\\\"Need install other program? use <install other>.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1205. cmdcor=1\\\\\\\\\\\\\\\
  1206. end\\\\\\\\\\\\\\\
  1207. if cmd==\\\\\\\\\\\\\\\"install other\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1208. print(\\\\\\\\\\\\\\\"[!] Warn! Programs from other sources can corrupt system or user's files!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1209. print(\\\\\\\\\\\\\\\"Install program only if you know that program or developer.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1210. write(\\\\\\\\\\\\\\\"Enter Pastebin Code of program: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1211. local pbcode=read()\\\\\\\\\\\\\\\
  1212. write(\\\\\\\\\\\\\\\"Enter program name: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1213. local name=read()\\\\\\\\\\\\\\\
  1214. print(\\\\\\\\\\\\\\\"Please check program's source code at www.pastebin.com/\\\\\\\\\\\\\\\", pbcode)\\\\\\\\\\\\\\\
  1215. write(\\\\\\\\\\\\\\\"Are you sure want to install that program?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1216. local switch=read()\\\\\\\\\\\\\\\
  1217. if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1218. program=(\\\\\\\\\\\\\\\"pastebin get \\\\\\\\\\\\\\\" .. pbcode .. \\\\\\\\\\\\\\\" /bin/\\\\\\\\\\\\\\\" .. name)\\\\\\\\\\\\\\\
  1219. shell.run(program)\\\\\\\\\\\\\\\
  1220. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1221. end\\\\\\\\\\\\\\\
  1222. cmdcor=1\\\\\\\\\\\\\\\
  1223. end\\\\\\\\\\\\\\\
  1224. if cmd==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Usage: remove <package>\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
  1225. cmdcor=1\\\\\\\\\\\\\\\
  1226. end\\\\\\\\\\\\\\\
  1227. if cmd==\\\\\\\\\\\\\\\"update\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1228. cmdcor=1\\\\\\\\\\\\\\\
  1229. shell.run(\\\\\\\\\\\\\\\"rm /system/bin/dpkg\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1230. shell.run(\\\\\\\\\\\\\\\"pastebin get ASkFgzQ7 /system/bin/dpkg\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1231. break\\\\\\\\\\\\\\\
  1232. end\\\\\\\\\\\\\\\
  1233. if cmd==(\\\\\\\\\\\\\\\"install rft\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1234. shell.run(\\\\\\\\\\\\\\\"pastebin get TLUaFUgr /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1235. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1236. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1237. cmdcor=1\\\\\\\\\\\\\\\
  1238. end\\\\\\\\\\\\\\\
  1239. if cmd==(\\\\\\\\\\\\\\\"remove rft\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1240. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1241. local input=read()\\\\\\\\\\\\\\\
  1242. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1243. print(\\\\\\\\\\\\\\\"Removing RednetFileTransfer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1244. shell.run(\\\\\\\\\\\\\\\"rm /bin/receive\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1245. shell.run(\\\\\\\\\\\\\\\"rm //bin/send\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1246. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1247. cmdcor=1\\\\\\\\\\\\\\\
  1248. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1249. end\\\\\\\\\\\\\\\
  1250. end\\\\\\\\\\\\\\\
  1251. if cmd==(\\\\\\\\\\\\\\\"install cftp\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1252. shell.run(\\\\\\\\\\\\\\\"pastebin get Tv0PGSUk /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1253. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1254. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1255. cmdcor=1\\\\\\\\\\\\\\\
  1256. end\\\\\\\\\\\\\\\
  1257. if cmd==(\\\\\\\\\\\\\\\"remove cftp\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1258. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1259. local input=read()\\\\\\\\\\\\\\\
  1260. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1261. print(\\\\\\\\\\\\\\\"Removing CFTP..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1262. shell.run(\\\\\\\\\\\\\\\"rm /bin/cftp-client\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1263. shell.run(\\\\\\\\\\\\\\\"rm /bin/cftp-server\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1264. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1265. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1266. end\\\\\\\\\\\\\\\
  1267. cmdcor=1\\\\\\\\\\\\\\\
  1268. end\\\\\\\\\\\\\\\
  1269. if cmd==(\\\\\\\\\\\\\\\"install ccchat\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1270. shell.run(\\\\\\\\\\\\\\\"pastebin get H5tgCCc4 /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1271. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1272. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1273. cmdcor=1\\\\\\\\\\\\\\\
  1274. end\\\\\\\\\\\\\\\
  1275. if cmd==\\\\\\\\\\\\\\\"remove ccchat\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1276. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1277. local input=read()\\\\\\\\\\\\\\\
  1278. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1279. print(\\\\\\\\\\\\\\\"Removing CCChat..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1280. shell.run(\\\\\\\\\\\\\\\"rm /bin/ccchat\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1281. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1282. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1283. end\\\\\\\\\\\\\\\
  1284. cmdcor=1\\\\\\\\\\\\\\\
  1285. end\\\\\\\\\\\\\\\
  1286. if cmd==(\\\\\\\\\\\\\\\"install lemonfm\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1287. shell.run(\\\\\\\\\\\\\\\"pastebin get 6yjq0zvs /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1288. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1289. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1290. cmdcor=1\\\\\\\\\\\\\\\
  1291. end\\\\\\\\\\\\\\\
  1292. if cmd==\\\\\\\\\\\\\\\"remove lemonfm\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1293. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1294. local input=read()\\\\\\\\\\\\\\\
  1295. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1296. print(\\\\\\\\\\\\\\\"Removing Lemon File Manager..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1297. shell.run(\\\\\\\\\\\\\\\"rm /bin/lemonfm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1298. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1299. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1300. end\\\\\\\\\\\\\\\
  1301. cmdcor=1\\\\\\\\\\\\\\\
  1302. end\\\\\\\\\\\\\\\
  1303. if cmd==(\\\\\\\\\\\\\\\"install mc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1304. shell.run(\\\\\\\\\\\\\\\"pastebin get GuFByPjn /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1305. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1306. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1307. cmdcor=1\\\\\\\\\\\\\\\
  1308. end\\\\\\\\\\\\\\\
  1309. if cmd==\\\\\\\\\\\\\\\"remove mc\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1310. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1311. local input=read()\\\\\\\\\\\\\\\
  1312. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1313. print(\\\\\\\\\\\\\\\"Removing Midday Commander..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1314. shell.run(\\\\\\\\\\\\\\\"rm /bin/mc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1315. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1316. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1317. end\\\\\\\\\\\\\\\
  1318. cmdcor=1\\\\\\\\\\\\\\\
  1319. end\\\\\\\\\\\\\\\
  1320. if cmd==(\\\\\\\\\\\\\\\"install rc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1321. shell.run(\\\\\\\\\\\\\\\"pastebin get YP13dhpX /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1322. shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1323. shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1324. cmdcor=1\\\\\\\\\\\\\\\
  1325. end\\\\\\\\\\\\\\\
  1326. if cmd==(\\\\\\\\\\\\\\\"remove rc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1327. write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1328. local input=read()\\\\\\\\\\\\\\\
  1329. if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1330. print(\\\\\\\\\\\\\\\"Removing Remote Commander..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1331. shell.run(\\\\\\\\\\\\\\\"rm /bin/rc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1332. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1333. cmdcor=1\\\\\\\\\\\\\\\
  1334. else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1335. end\\\\\\\\\\\\\\\
  1336. end\\\\\\\\\\\\\\\
  1337. if cmdcor==0 then print(\\\\\\\\\\\\\\\"Unknown command. Press <help> to get commands list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1338. end\\\\\\\\\\\\\\\
  1339. end\\\\\\\\\\\\\\\
  1340. shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1341. shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
  1342. \\\"F:echo\\\",\\\
  1343. \\\"\\\\\\\"local args={ ... }\\\\\\\\\\\\\\\
  1344. if #args==0 then\\\\\\\\\\\\\\\
  1345. print(\\\\\\\\\\\\\\\"Usage: echo <text>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1346. else\\\\\\\\\\\\\\\
  1347. local i=1\\\\\\\\\\\\\\\
  1348. while true do\\\\\\\\\\\\\\\
  1349. if args[i]==nil then\\\\\\\\\\\\\\\
  1350. break\\\\\\\\\\\\\\\
  1351. else\\\\\\\\\\\\\\\
  1352. write(args[i] .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1353. i=i+1\\\\\\\\\\\\\\\
  1354. end\\\\\\\\\\\\\\\
  1355. end\\\\\\\\\\\\\\\
  1356. print(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1357. end\\\\\\\"\\\",\\\
  1358. \\\"F:fm\\\",\\\
  1359. \\\"\\\\\\\"local function clear()\\\\\\\\\\\\\\\
  1360. term.clear()\\\\\\\\\\\\\\\
  1361. term.setCursorPos(1,1)\\\\\\\\\\\\\\\
  1362. end\\\\\\\\\\\\\\\
  1363. local current=\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir()\\\\\\\\\\\\\\\
  1364. while true do\\\\\\\\\\\\\\\
  1365. clear()\\\\\\\\\\\\\\\
  1366. dir = (\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
  1367. local list=fs.list(dir)\\\\\\\\\\\\\\\
  1368. table.insert(list,1, \\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1369. table.insert(list, \\\\\\\\\\\\\\\"[Exit from File Manager]\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1370. print(\\\\\\\\\\\\\\\"Debian CC File Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1371. print(\\\\\\\\\\\\\\\"Current dir: /\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
  1372. local filenum=MenuAPI.CreateMenu(list, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 3,4)\\\\\\\\\\\\\\\
  1373. local filepath=(dir .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. list[filenum])\\\\\\\\\\\\\\\
  1374. if filepath==dir..\\\\\\\\\\\\\\\"/[Exit from File Manager]\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
  1375. shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\" .. current)\\\\\\\\\\\\\\\
  1376. break end\\\\\\\\\\\\\\\
  1377. if fs.isDir(filepath) then shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\" .. filepath) \\\\\\\\\\\\\\\
  1378. else \\\\\\\\\\\\\\\
  1379. clear()\\\\\\\\\\\\\\\
  1380. print(\\\\\\\\\\\\\\\"Select action\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1381. print(\\\\\\\\\\\\\\\"File: \\\\\\\\\\\\\\\" .. filepath)\\\\\\\\\\\\\\\
  1382. local fa={\\\\\\\\\\\\\\\"Run\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Edit\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Delete\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\
  1383. local fas=MenuAPI.CreateMenu(fa, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 3,3)\\\\\\\\\\\\\\\
  1384. if fas==1 then shell.run(filepath) end\\\\\\\\\\\\\\\
  1385. if fas==2 then shell.run(\\\\\\\\\\\\\\\"edit \\\\\\\\\\\\\\\" .. filepath) end\\\\\\\\\\\\\\\
  1386. if fas==3 then shell.run(\\\\\\\\\\\\\\\"rm \\\\\\\\\\\\\\\" .. filepath) end\\\\\\\\\\\\\\\
  1387. end\\\\\\\\\\\\\\\
  1388. end\\\\\\\"\\\",\\\
  1389. \\\"F:grub-configure\\\",\\\
  1390. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1391. prebootloader=DialogAPI.select(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Select bootloader type:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"BootSelect\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Debian CC\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
  1392. if prebootloader==1 then\\\\\\\\\\\\\\\
  1393. bootloader=\\\\\\\\\\\\\\\"BootSelect\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1394. else bootloader=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1395. end\\\\\\\\\\\\\\\
  1396. local usepasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Use password on boot?\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1397. if usepasswd==1 then\\\\\\\\\\\\\\\
  1398. usepasswd=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1399. while true do\\\\\\\\\\\\\\\
  1400. write(\\\\\\\\\\\\\\\"Enter password: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1401. password=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1402. write(\\\\\\\\\\\\\\\"Confirm password: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1403. local password2=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1404. if password==password2 then\\\\\\\\\\\\\\\
  1405. break\\\\\\\\\\\\\\\
  1406. else\\\\\\\\\\\\\\\
  1407. print(\\\\\\\\\\\\\\\"Passwords not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1408. end\\\\\\\\\\\\\\\
  1409. end\\\\\\\\\\\\\\\
  1410. else\\\\\\\\\\\\\\\
  1411. usepasswd=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1412. password=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1413. end\\\\\\\\\\\\\\\
  1414. local select=DialogAPI.request(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Confirm this changes?\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1415. if select==1 then\\\\\\\\\\\\\\\
  1416. local f=fs.open(\\\\\\\\\\\\\\\"/boot/grubcfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1417. local line1=(\\\\\\\\\\\\\\\"reqpasswd='\\\\\\\\\\\\\\\" .. usepasswd .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1418. local line2=(\\\\\\\\\\\\\\\"bootpassword='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1419. local line3=(\\\\\\\\\\\\\\\"bootpriority='\\\\\\\\\\\\\\\" .. bootloader .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1420. f.writeLine(line1)\\\\\\\\\\\\\\\
  1421. f.writeLine(line2)\\\\\\\\\\\\\\\
  1422. f.writeLine(line3)\\\\\\\\\\\\\\\
  1423. f.close()\\\\\\\\\\\\\\\
  1424. print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1425. else\\\\\\\\\\\\\\\
  1426. print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1427. end\\\\\\\\\\\\\\\
  1428. usepasswd=nil\\\\\\\\\\\\\\\
  1429. password=nil\\\\\\\"\\\",\\\
  1430. \\\"F:help\\\",\\\
  1431. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Help page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1432. print(\\\\\\\\\\\\\\\"help - get this page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1433. print(\\\\\\\\\\\\\\\"cd <dir> - change directory to <dir>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1434. print(\\\\\\\\\\\\\\\"shutdown - shutdown computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1435. print(\\\\\\\\\\\\\\\"reboot - reboot computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1436. print(\\\\\\\\\\\\\\\"reboot --force - force reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1437. print(\\\\\\\\\\\\\\\"reboot --bs - reboot in BootSelect Mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1438. print(\\\\\\\\\\\\\\\"grubsm - open grub configurator\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1439. print(\\\\\\\\\\\\\\\"edit <filename> - open for edit <filename>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1440. print(\\\\\\\\\\\\\\\"su - get SuperUser permissions\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1441. print(\\\\\\\\\\\\\\\"about - see information about this PC\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1442. print(\\\\\\\\\\\\\\\"gksh - start text user interface\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1443. print(\\\\\\\\\\\\\\\"NetCMD - open NetDrv command console\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1444. print(\\\\\\\\\\\\\\\"achiver - files archiver\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1445. print(\\\\\\\\\\\\\\\"dpkg - open packages manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1446. print(\\\\\\\\\\\\\\\"backup - open System Backup manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1447. write(\\\\\\\\\\\\\\\"Press <Enter> to continue..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1448. read(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1449. print(\\\\\\\\\\\\\\\"restore - open System Restore manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1450. print(\\\\\\\\\\\\\\\"cat </path/to/file> - show data in file </path/to/file>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1451. print(\\\\\\\\\\\\\\\"dcc-configure - run Debian CC configurer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1452. print(\\\\\\\\\\\\\\\"grub-configure - run Grub CC configurer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1453. print(\\\\\\\\\\\\\\\"logout - logout from session\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1454. print(\\\\\\\\\\\\\\\"cc-devel - Debian CC Programs Builder\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1455. print(\\\\\\\\\\\\\\\"pwd - show path to current dir\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1456. print(\\\\\\\\\\\\\\\"uname - information about distro\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1457. print(\\\\\\\\\\\\\\\"echo <text> - print <text>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1458. print(\\\\\\\\\\\\\\\"script </path/to/file> - execute commands in file (bash-like scripts)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1459. print(\\\\\\\\\\\\\\\"pm - packages manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1460. print(\\\\\\\\\\\\\\\"wget <http://filestorage.org/file.lua> <program.lua> - get file <program.lua> to current folder from <http://filestorage.org/file.lua>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1461. write('Press <Enter> to cotinue..') read(' ') DebAPI.clear()\\\\\\\\\\\\\\\
  1462. print(\\\\\\\\\\\\\\\"browser <http://computercraft.info> - open <http://computercraft.info> for read (not support html!)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1463. print(\\\\\\\\\\\\\\\"motd - MOTD Edit Tool - more: motd --help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1464. print(\\\\\\\\\\\\\\\"fm - Debian CC File Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1465. print(\\\\\\\\\\\\\\\"make - rootfs and package builder and installer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1466. print('hostname - hostname edit tool')\\\\\\\"\\\",\\\
  1467. \\\"F:hostname\\\",\\\
  1468. \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
  1469. local function showHelp()\\\\\\\\\\\\\\\
  1470. print('Debian CC Hostname Edit Tool')\\\\\\\\\\\\\\\
  1471. print('hostname - show hostname')\\\\\\\\\\\\\\\
  1472. print('hostname <name> - set hostname to <name> (reset after reboot)')\\\\\\\\\\\\\\\
  1473. print('hostname -u (or --update) - save current hostname to system')\\\\\\\\\\\\\\\
  1474. print('hostname -e (or --edit) - edit hostname file manualy')\\\\\\\\\\\\\\\
  1475. print('hostname -h (or --help, or run without args) - this text')\\\\\\\\\\\\\\\
  1476. end\\\\\\\\\\\\\\\
  1477. \\\\\\\\\\\\\\\
  1478. if #args==1 or #args==2 then\\\\\\\\\\\\\\\
  1479. \\\\\\\\\\\\\\\
  1480. succ=0\\\\\\\\\\\\\\\
  1481. \\\\\\\\\\\\\\\
  1482. if args[1]=='--help' or args[1]=='-h'then\\\\\\\\\\\\\\\
  1483. showHelp()\\\\\\\\\\\\\\\
  1484. succ=1\\\\\\\\\\\\\\\
  1485. end\\\\\\\\\\\\\\\
  1486. \\\\\\\\\\\\\\\
  1487. if args[1]=='--update' or args[1]=='-u' then\\\\\\\\\\\\\\\
  1488. local hf=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
  1489. hf.writeLine(syscfg.computername)\\\\\\\\\\\\\\\
  1490. hf.close()\\\\\\\\\\\\\\\
  1491. succ=1\\\\\\\\\\\\\\\
  1492. end\\\\\\\\\\\\\\\
  1493. \\\\\\\\\\\\\\\
  1494. if args[1]=='--edit' or args[1]=='-e' then\\\\\\\\\\\\\\\
  1495. shell.run('edit /etc/hostname')\\\\\\\\\\\\\\\
  1496. succ=1\\\\\\\\\\\\\\\
  1497. end\\\\\\\\\\\\\\\
  1498. \\\\\\\\\\\\\\\
  1499. if succ==0 then\\\\\\\\\\\\\\\
  1500. if string.sub(args[1],1,1)=='-' then showHelp()\\\\\\\\\\\\\\\
  1501. else\\\\\\\\\\\\\\\
  1502. syscfg.computername=args[1] end\\\\\\\\\\\\\\\
  1503. end\\\\\\\\\\\\\\\
  1504. \\\\\\\\\\\\\\\
  1505. else print(syscfg.computername)\\\\\\\\\\\\\\\
  1506. end\\\\\\\"\\\",\\\
  1507. \\\"F:logout\\\",\\\
  1508. \\\"\\\\\\\"write(\\\\\\\\\\\\\\\"Are you sure want logout? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1509. check=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1510. if check==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1511. check=nil\\\\\\\\\\\\\\\
  1512. shell.run(\\\\\\\\\\\\\\\"/system/auth\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1513. else\\\\\\\\\\\\\\\
  1514. print(\\\\\\\\\\\\\\\"Logout aborted.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1515. check=nil\\\\\\\\\\\\\\\
  1516. end\\\\\\\"\\\",\\\
  1517. \\\"F:make\\\",\\\
  1518. \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
  1519. if #args==0 then\\\\\\\\\\\\\\\
  1520. print('Debian CC Source-code Management Tool')\\\\\\\\\\\\\\\
  1521. print('Usage:')\\\\\\\\\\\\\\\
  1522. print('make rootfs - create image of current dir as ro rootfs (image save seted to ~)')\\\\\\\\\\\\\\\
  1523. print('make package - generate .deb package (see make.package --help for more)')\\\\\\\\\\\\\\\
  1524. print('make install.package - install package from source without compilation')\\\\\\\\\\\\\\\
  1525. print('make install.rootfs - install rootfs.arch rootfs file from current dir')\\\\\\\\\\\\\\\
  1526. else\\\\\\\\\\\\\\\
  1527. if args[1]=='rootfs' then\\\\\\\\\\\\\\\
  1528. shell.run('/system/bin/make.rootfs')\\\\\\\\\\\\\\\
  1529. elseif args[1]=='package' then\\\\\\\\\\\\\\\
  1530. shell.run('/system/bin/make.package')\\\\\\\\\\\\\\\
  1531. elseif args[1]=='install.package' then\\\\\\\\\\\\\\\
  1532. shell.run('/system/bin/make.package')\\\\\\\\\\\\\\\
  1533. ipath=(config.home .. '/' .. fs.getName(shell.dir) .. '.deb')\\\\\\\\\\\\\\\
  1534. if fs.exists(ipath) then shell.run('/system/bin/dpkg install ' .. ipath) else\\\\\\\\\\\\\\\
  1535. print('Package build error: read text up for help')\\\\\\\\\\\\\\\
  1536. end\\\\\\\\\\\\\\\
  1537. elseif args[1]=='install.rootfs' and args[2]==nil then\\\\\\\\\\\\\\\
  1538. ipath=('/' .. shell.dir() .. '/rootfs.arch')\\\\\\\\\\\\\\\
  1539. if fs.exists(ipath) then shell.run('/system/bin/archiver unzip ' .. ipath .. ' /') else print('RootFS File not founded!') end\\\\\\\\\\\\\\\
  1540. else\\\\\\\\\\\\\\\
  1541. print('DCCSCMT: Unknown command!')\\\\\\\\\\\\\\\
  1542. end\\\\\\\\\\\\\\\
  1543. end\\\\\\\"\\\",\\\
  1544. \\\"F:make.package\\\",\\\
  1545. \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
  1546. print(\\\\\\\\\\\\\\\"Debian CC Package Generator\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1547. if #args==0 then\\\\\\\\\\\\\\\
  1548. if fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/rootfs.arch\\\\\\\\\\\\\\\") and fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\") and fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postremove\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1549. local build=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. config.home .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1550. local rootfsfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/rootfs.arch\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1551. local rootfs=rootfsfile.readAll()\\\\\\\\\\\\\\\
  1552. rootfsfile.close()\\\\\\\\\\\\\\\
  1553. local installfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1554. local install=installfile.readAll()\\\\\\\\\\\\\\\
  1555. installfile.close()\\\\\\\\\\\\\\\
  1556. local removefile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postremove\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1557. local remove=removefile.readAll()\\\\\\\\\\\\\\\
  1558. removefile.close()\\\\\\\\\\\\\\\
  1559. local filesfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1560. local files=filesfile.readAll()\\\\\\\\\\\\\\\
  1561. filesfile.close()\\\\\\\\\\\\\\\
  1562. print(\\\\\\\\\\\\\\\"Please enter info about package:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1563. write(\\\\\\\\\\\\\\\"Name: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1564. local name=read()\\\\\\\\\\\\\\\
  1565. write(\\\\\\\\\\\\\\\"Author: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1566. local author=read()\\\\\\\\\\\\\\\
  1567. write(\\\\\\\\\\\\\\\"Package index: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1568. local index=read()\\\\\\\\\\\\\\\
  1569. write(\\\\\\\\\\\\\\\"Building Package.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1570. package={\\\\\\\\\\\\\\\
  1571. name=name,\\\\\\\\\\\\\\\
  1572. author=author,\\\\\\\\\\\\\\\
  1573. index=index,\\\\\\\\\\\\\\\
  1574. rootfs=rootfs,\\\\\\\\\\\\\\\
  1575. install=install,\\\\\\\\\\\\\\\
  1576. remove=remove,\\\\\\\\\\\\\\\
  1577. files=files\\\\\\\\\\\\\\\
  1578. }\\\\\\\\\\\\\\\
  1579. build.writeLine(textutils.serialize(package))\\\\\\\\\\\\\\\
  1580. build.close()\\\\\\\\\\\\\\\
  1581. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1582. print(\\\\\\\\\\\\\\\"Package saved as ~/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1583. else print(\\\\\\\\\\\\\\\"[!] All needed files not founded in current dir! Please run <mp --help> to get help.\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1584. else\\\\\\\\\\\\\\\
  1585. if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1586. print(\\\\\\\\\\\\\\\"Debian CC Package Manager Packages Generation Structure:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1587. print(\\\\\\\\\\\\\\\"rootfs.arch - archive with rootfs (can be created using make rootfs)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1588. print(\\\\\\\\\\\\\\\"postinstall - program executed after installing package\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1589. print(\\\\\\\\\\\\\\\"postremove - program executed for remove package (remove all program files, update libs index if needed)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1590. print(\\\\\\\\\\\\\\\"To make your package, please create and prepare all that files and run <mp> in dir with thats.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1591. end\\\\\\\\\\\\\\\
  1592. end\\\\\\\"\\\",\\\
  1593. \\\"F:make.rootfs\\\",\\\
  1594. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Making image of \\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1595. local impath=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
  1596. local imdir=config.home .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir())\\\\\\\\\\\\\\\
  1597. local s=shell.run(\\\\\\\\\\\\\\\"/system/bin/archiver zip \\\\\\\\\\\\\\\" .. impath .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. imdir)\\\\\\\\\\\\\\\
  1598. if s==true then\\\\\\\\\\\\\\\
  1599. print(\\\\\\\\\\\\\\\"Image created successfuly!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1600. else print(\\\\\\\\\\\\\\\"Error while building image..\\\\\\\\\\\\\\\") end\\\\\\\"\\\",\\\
  1601. \\\"F:man\\\",\\\
  1602. \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
  1603. local function wroteManual(index)\\\\\\\\\\\\\\\
  1604. if fs.exists('/system/Programs/man/doc/' .. index) then\\\\\\\\\\\\\\\
  1605. DebAPI.clear()\\\\\\\\\\\\\\\
  1606. textutils.pagedTabulate(DebAPI.readFromFile('/system/Programs/man/doc/' .. index))\\\\\\\\\\\\\\\
  1607. write('Press <Enter> to continue..') read(' ')\\\\\\\\\\\\\\\
  1608. a=true\\\\\\\\\\\\\\\
  1609. else a=false\\\\\\\\\\\\\\\
  1610. end\\\\\\\\\\\\\\\
  1611. return a\\\\\\\\\\\\\\\
  1612. end\\\\\\\\\\\\\\\
  1613. if args[1]==nil then\\\\\\\\\\\\\\\
  1614. wroteManual('.index')\\\\\\\\\\\\\\\
  1615. else\\\\\\\\\\\\\\\
  1616. if fs.exists('/system/Programs/man/doc/' .. args[1]) then\\\\\\\\\\\\\\\
  1617. wroteManual(args[1])\\\\\\\\\\\\\\\
  1618. else print('man: help page \\\\\\\\\\\\\\\"' .. args[1] .. '\\\\\\\\\\\\\\\" is not exists')\\\\\\\\\\\\\\\
  1619. end\\\\\\\\\\\\\\\
  1620. end\\\\\\\"\\\",\\\
  1621. \\\"F:motd\\\",\\\
  1622. \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
  1623. if #args==1 then\\\\\\\\\\\\\\\
  1624. if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1625. print(\\\\\\\\\\\\\\\"Debian CC MOTD Edit Tool\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1626. print(\\\\\\\\\\\\\\\"motd -e - edit motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1627. print(\\\\\\\\\\\\\\\"motd --help - this page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1628. print(\\\\\\\\\\\\\\\"motd - print current motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1629. end\\\\\\\\\\\\\\\
  1630. if args[1]==\\\\\\\\\\\\\\\"-e\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1631. shell.run(\\\\\\\\\\\\\\\"edit /etc/motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1632. end\\\\\\\\\\\\\\\
  1633. else\\\\\\\\\\\\\\\
  1634. shell.run(\\\\\\\\\\\\\\\"/system/bin/cat /etc/motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1635. end\\\\\\\"\\\",\\\
  1636. \\\"F:pm\\\",\\\
  1637. \\\"\\\\\\\"local function getPath(input)\\\\\\\\\\\\\\\
  1638. if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
  1639. path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
  1640. return path\\\\\\\\\\\\\\\
  1641. end\\\\\\\\\\\\\\\
  1642. \\\\\\\\\\\\\\\
  1643. print(\\\\\\\\\\\\\\\"Debian CC Packages Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1644. local args={...}\\\\\\\\\\\\\\\
  1645. if #args==1 or #args==2 then\\\\\\\\\\\\\\\
  1646. \\\\\\\\\\\\\\\
  1647. \\\\\\\\\\\\\\\
  1648. if args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1649. \\\\\\\\\\\\\\\
  1650. if fs.isDir(\\\\\\\\\\\\\\\"/system/Programs/index\\\\\\\\\\\\\\\")==false then\\\\\\\\\\\\\\\
  1651. fs.makeDir(\\\\\\\\\\\\\\\"/system/Programs/index\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1652. end\\\\\\\\\\\\\\\
  1653. \\\\\\\\\\\\\\\
  1654. if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1655. args[2]=getPath(args[2])\\\\\\\\\\\\\\\
  1656. if fs.exists(args[2]) then\\\\\\\\\\\\\\\
  1657. local targetf=fs.open(args[2], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1658. local pack=textutils.unserialize(targetf.readAll())\\\\\\\\\\\\\\\
  1659. targetf.close()\\\\\\\\\\\\\\\
  1660. if fs.exists(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index)==false then\\\\\\\\\\\\\\\
  1661. print(\\\\\\\\\\\\\\\"Installing package..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1662. print(\\\\\\\\\\\\\\\"Package: \\\\\\\\\\\\\\\" .. pack.name)\\\\\\\\\\\\\\\
  1663. print(\\\\\\\\\\\\\\\"Author: \\\\\\\\\\\\\\\" .. pack.author)\\\\\\\\\\\\\\\
  1664. if DebAPI.request(\\\\\\\\\\\\\\\"Install this package\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1665. local rfs=fs.open(\\\\\\\\\\\\\\\"/tmp/rfs.arch\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1666. rfs.writeLine(pack.rootfs)\\\\\\\\\\\\\\\
  1667. rfs.close()\\\\\\\\\\\\\\\
  1668. shell.run(\\\\\\\\\\\\\\\"/system/bin/archiver unzip /tmp/rfs.arch /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1669. local pi=fs.open(\\\\\\\\\\\\\\\"/tmp/pi\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1670. pi.writeLine(pack.install)\\\\\\\\\\\\\\\
  1671. pi.close()\\\\\\\\\\\\\\\
  1672. print(\\\\\\\\\\\\\\\"Configuring package..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1673. shell.run(\\\\\\\\\\\\\\\"/tmp/pi\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1674. local removew=fs.open(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1675. removew.writeLine(pack.remove)\\\\\\\\\\\\\\\
  1676. removew.writeLine(\\\\\\\\\\\\\\\"fs.delete('/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index .. \\\\\\\\\\\\\\\"')\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1677. \\\\\\\\\\\\\\\
  1678. removew.close() \\\\\\\\\\\\\\\
  1679. print(\\\\\\\\\\\\\\\"Package installed successfuly!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1680. DebAPI.clearCache()\\\\\\\\\\\\\\\
  1681. else print(\\\\\\\\\\\\\\\"Terminated by user..\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1682. else print(\\\\\\\\\\\\\\\"Package with index \\\\\\\\\\\\\\\" .. pack.index .. \\\\\\\\\\\\\\\" already installed!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1683. \\\\\\\\\\\\\\\
  1684. end\\\\\\\\\\\\\\\
  1685. else print(\\\\\\\\\\\\\\\"Package file not exists!\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1686. .. '\\\\\\\\\\\\\\\\nIf you seen this text while using apt-get then requested package is not founded in repository.') end\\\\\\\\\\\\\\\
  1687. \\\\\\\\\\\\\\\
  1688. elseif args[1]==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1689. if fs.exists(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. args[2]) then\\\\\\\\\\\\\\\
  1690. if DebAPI.request(\\\\\\\\\\\\\\\"Are you sure want remove index \\\\\\\\\\\\\\\" .. args[2] .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
  1691. write(\\\\\\\\\\\\\\\"Removing package.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1692. shell.run(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. args[2]) else print(\\\\\\\\\\\\\\\"Terminated by user.\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1693. print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1694. else print(\\\\\\\\\\\\\\\"Package not installed..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1695. end\\\\\\\\\\\\\\\
  1696. elseif args[1]==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1697. shell.run(\\\\\\\\\\\\\\\"ls /system/Programs/index/\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1698. \\\\\\\\\\\\\\\
  1699. else print(\\\\\\\\\\\\\\\"Usage: pm install </path>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1700. print(\\\\\\\\\\\\\\\"pm remove <index>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1701. end\\\\\\\\\\\\\\\
  1702. end\\\\\\\"\\\",\\\
  1703. \\\"F:pwd\\\",\\\
  1704. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\"\\\",\\\
  1705. \\\"F:reboot\\\",\\\
  1706. \\\"\\\\\\\"if DebAPI then\\\\\\\\\\\\\\\
  1707. print(\\\\\\\\\\\\\\\"OK\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1708. read()\\\\\\\\\\\\\\\
  1709. DebAPI.reboot()\\\\\\\\\\\\\\\
  1710. else\\\\\\\\\\\\\\\
  1711. print(\\\\\\\\\\\\\\\"Not OK\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1712. read()\\\\\\\\\\\\\\\
  1713. print(\\\\\\\\\\\\\\\"Rebooting computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1714. sleep(1)\\\\\\\\\\\\\\\
  1715. os.reboot()\\\\\\\\\\\\\\\
  1716. end\\\\\\\"\\\",\\\
  1717. \\\"F:restore\\\",\\\
  1718. \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Restore Tool by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1719. print(\\\\\\\\\\\\\\\"Restore Tool using Archiver by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1720. print(\\\\\\\\\\\\\\\"Enter Backup name:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1721. rname=read()\\\\\\\\\\\\\\\
  1722. rpath=(\\\\\\\\\\\\\\\"/var/backup/\\\\\\\\\\\\\\\" .. rname .. \\\\\\\\\\\\\\\".arch\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1723. if true==fs.exists(rpath) then\\\\\\\\\\\\\\\
  1724. print(\\\\\\\\\\\\\\\"Warning! That action remove all your files!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1725. write(\\\\\\\\\\\\\\\"Are you sure want continue?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1726. switch=read()\\\\\\\\\\\\\\\
  1727. if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1728. print(\\\\\\\\\\\\\\\"Copying restore data to temporary folder..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1729. shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1730. shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1731. shell.run(\\\\\\\\\\\\\\\"cp /system/bin/archiver /tmp/archiver\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1732. print(\\\\\\\\\\\\\\\"Restoring..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1733. shell.run(\\\\\\\\\\\\\\\"rm /system\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1734. shell.run(\\\\\\\\\\\\\\\"rm /bin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1735. shell.run(\\\\\\\\\\\\\\\"rm /boot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1736. shell.run(\\\\\\\\\\\\\\\"rm /doc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1737. shell.run(\\\\\\\\\\\\\\\"rm /home\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1738. shell.run(\\\\\\\\\\\\\\\"rm /root\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1739. shell.run(\\\\\\\\\\\\\\\"rm /startup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1740. cmd=(\\\\\\\\\\\\\\\"/tmp/archiver unzip \\\\\\\\\\\\\\\" .. rpath .. \\\\\\\\\\\\\\\" /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1741. shell.run(cmd)\\\\\\\\\\\\\\\
  1742. shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1743. else\\\\\\\\\\\\\\\
  1744. print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1745. end\\\\\\\\\\\\\\\
  1746. else\\\\\\\\\\\\\\\
  1747. print(\\\\\\\\\\\\\\\"No such Backup file, aborting..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1748. end\\\\\\\"\\\",\\\
  1749. \\\"F:script\\\",\\\
  1750. \\\"\\\\\\\"local function getPath(input)\\\\\\\\\\\\\\\
  1751. if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
  1752. path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
  1753. return path\\\\\\\\\\\\\\\
  1754. end\\\\\\\\\\\\\\\
  1755. local args={ ... }\\\\\\\\\\\\\\\
  1756. if #args>=1 then\\\\\\\\\\\\\\\
  1757. if fs.exists(getPath(args[1]))==true then\\\\\\\\\\\\\\\
  1758. if fs.isDir(getPath(args[1]))==false then\\\\\\\\\\\\\\\
  1759. --script exec\\\\\\\\\\\\\\\
  1760. local ccscript=fs.open(getPath(args[1]), \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1761. while true do\\\\\\\\\\\\\\\
  1762. local secmd=ccscript.readLine()\\\\\\\\\\\\\\\
  1763. if secmd==nil then break else\\\\\\\\\\\\\\\
  1764. if args[2]==\\\\\\\\\\\\\\\"--debug\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1765. print(\\\\\\\\\\\\\\\"> \\\\\\\\\\\\\\\" .. secmd)\\\\\\\\\\\\\\\
  1766. end\\\\\\\\\\\\\\\
  1767. shell.run(secmd)\\\\\\\\\\\\\\\
  1768. end\\\\\\\\\\\\\\\
  1769. end\\\\\\\\\\\\\\\
  1770. ccscript.close()\\\\\\\\\\\\\\\
  1771. else print(\\\\\\\\\\\\\\\"Error: \\\\\\\\\\\\\\\" .. args[1] .. \\\\\\\\\\\\\\\" is a directory!\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  1772. else print(\\\\\\\\\\\\\\\"Error: No such file: \\\\\\\\\\\\\\\" .. args[1]) end\\\\\\\\\\\\\\\
  1773. else\\\\\\\\\\\\\\\
  1774. print(\\\\\\\\\\\\\\\"Debian CC Scripts Executor\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1775. print(\\\\\\\\\\\\\\\"This tool has executing commands in file.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1776. print(\\\\\\\\\\\\\\\"Usage: script </path/to/file>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1777. print(\\\\\\\\\\\\\\\"Or: script </path/to/file> --debug for show executed cmds.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1778. end\\\\\\\"\\\",\\\
  1779. \\\"F:sh\\\",\\\
  1780. \\\"\\\\\\\"while true do\\\\\\\\\\\\\\\
  1781. sush=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1782. if username==\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1783. write(\\\\\\\\\\\\\\\"# \\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
  1784. sush=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1785. end\\\\\\\\\\\\\\\
  1786. if sush==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1787. write(\\\\\\\\\\\\\\\"$ \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1788. end\\\\\\\\\\\\\\\
  1789. local command = read()\\\\\\\\\\\\\\\
  1790. shcor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1791. if command==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then break\\\\\\\\\\\\\\\
  1792. end\\\\\\\\\\\\\\\
  1793. if command==\\\\\\\\\\\\\\\"su\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1794. shell.run(\\\\\\\\\\\\\\\"/system/rootmode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1795. end\\\\\\\\\\\\\\\
  1796. if command==\\\\\\\\\\\\\\\"grubsm\\\\\\\\\\\\\\\" then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1797. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1798. end\\\\\\\\\\\\\\\
  1799. if command==\\\\\\\\\\\\\\\"reboot --bs\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1800. debmode=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1801. shell.run(\\\\\\\\\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1802. end\\\\\\\\\\\\\\\
  1803. if command==\\\\\\\\\\\\\\\"reboot --force\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1804. os.reboot()\\\\\\\\\\\\\\\
  1805. end\\\\\\\\\\\\\\\
  1806. if command==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1807. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1808. shell.run(\\\\\\\\\\\\\\\"/system/bin/help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1809. end\\\\\\\\\\\\\\\
  1810. if command==\\\\\\\\\\\\\\\"about\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1811. shell.run(\\\\\\\\\\\\\\\"/system/bin/about\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1812. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1813. end\\\\\\\\\\\\\\\
  1814. if command==\\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1815. print(path2)\\\\\\\\\\\\\\\
  1816. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1817. end\\\\\\\\\\\\\\\
  1818. if command==\\\\\\\\\\\\\\\"cd ~\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1819. shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\", config.home)\\\\\\\\\\\\\\\
  1820. shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
  1821. end\\\\\\\\\\\\\\\
  1822. if shcor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then shell.run(command)\\\\\\\\\\\\\\\
  1823. end\\\\\\\\\\\\\\\
  1824. end\\\\\\\"\\\",\\\
  1825. \\\"F:uname\\\",\\\
  1826. \\\"\\\\\\\"local args={ ... }\\\\\\\\\\\\\\\
  1827. if #args==0 then\\\\\\\\\\\\\\\
  1828. print(distro.name)\\\\\\\\\\\\\\\
  1829. end\\\\\\\\\\\\\\\
  1830. if #args==1 then\\\\\\\\\\\\\\\
  1831. if args[1]==\\\\\\\\\\\\\\\"-a\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1832. print(distro.name .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. distro.version .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" ..DebAPI.id)\\\\\\\\\\\\\\\
  1833. end\\\\\\\\\\\\\\\
  1834. if args[1]==\\\\\\\\\\\\\\\"-v\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1835. print(distro.version)\\\\\\\\\\\\\\\
  1836. print(\\\\\\\\\\\\\\\"Lua version: \\\\\\\\\\\\\\\" .. _VERSION)\\\\\\\\\\\\\\\
  1837. end\\\\\\\\\\\\\\\
  1838. if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1839. print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1840. print(\\\\\\\\\\\\\\\"uname -v - get version of Debian CC\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1841. print(\\\\\\\\\\\\\\\"uname -a - get all information about distro\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1842. print(\\\\\\\\\\\\\\\"uname - distro name\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1843. print(\\\\\\\\\\\\\\\"uname --help - this help page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1844. end\\\\\\\\\\\\\\\
  1845. end\\\\\\\"\\\",\\\
  1846. \\\"F:wget\\\",\\\
  1847. \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
  1848. if #args==2 or #args==1 then\\\\\\\\\\\\\\\
  1849. if args[2]==nil then args[2]=fs.getName(args[1]) end\\\\\\\\\\\\\\\
  1850. path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. args[2])\\\\\\\\\\\\\\\
  1851. print(\\\\\\\\\\\\\\\"Saving file as: \\\\\\\\\\\\\\\" .. path)\\\\\\\\\\\\\\\
  1852. write(\\\\\\\\\\\\\\\"Downloading file.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1853. DebAPI.getFile(args[1], path)\\\\\\\\\\\\\\\
  1854. print(\\\\\\\\\\\\\\\"Done\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1855. elseif #args==3 and args[2]==\\\\\\\\\\\\\\\"--full-path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1856. print(\\\\\\\\\\\\\\\"Saving file as: \\\\\\\\\\\\\\\" .. args[3])\\\\\\\\\\\\\\\
  1857. write(\\\\\\\\\\\\\\\"Downloading file.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1858. DebAPI.getFile(args[1], args[3])\\\\\\\\\\\\\\\
  1859. print(\\\\\\\\\\\\\\\"Done\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1860. else\\\\\\\\\\\\\\\
  1861. print(\\\\\\\\\\\\\\\"Usage: wget <http://filestorage.org/files/file.lua> [Optional: <file name>]\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1862. print(\\\\\\\\\\\\\\\"Or wget http://filestorage.org/files/file.lua --full-path /disk/other-file.lua to save file with absolutely full path\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1863. end\\\\\\\"\\\",\\\
  1864. }\",\
  1865. \"D:defaults\",\
  1866. \"{\\\
  1867. \\\"F:autorun\\\",\\\
  1868. \\\"\\\\\\\"--Paste your code here\\\\\\\"\\\",\\\
  1869. \\\"F:autorun-welcome\\\",\\\
  1870. \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1871. print(\\\\\\\\\\\\\\\"Hello, user. Welcome to Debian CC port by MelnikovSM(RePack by utkabobr).\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1872. print(\\\\\\\\\\\\\\\"Now you must configure your system.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1873. print(\\\\\\\\\\\\\\\"Press <s> and <Enter> to skip configuring.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1874. write(\\\\\\\\\\\\\\\"Press <Enter> to continue\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1875. local text=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1876. if text==\\\\\\\\\\\\\\\"s\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1877. shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1878. shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1879. print(\\\\\\\\\\\\\\\"You can configure your computer at anytime using command dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1880. else\\\\\\\\\\\\\\\
  1881. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1882. shell.run(\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1883. sleep(1)\\\\\\\\\\\\\\\
  1884. shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1885. print(\\\\\\\\\\\\\\\"Computer will reboot now to complete configuring operation.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1886. write(\\\\\\\\\\\\\\\"Press <Enter> to reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1887. read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1888. shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1889. shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1890. os.reboot()\\\\\\\\\\\\\\\
  1891. end\\\\\\\"\\\",\\\
  1892. \\\"F:motd\\\",\\\
  1893. \\\"\\\\\\\"Documentation: man\\\\\\\\\\\\\\\
  1894. Release notes: man ReleaseNotes\\\\\\\\\\\\\\\
  1895. Like this OS? Share it with friends and players on servers with ComputerCraft Mod.\\\\\\\\\\\\\\\
  1896. Pastebin code: wBEKVa9k\\\\\\\\\\\\\\\
  1897. You can change this text in /etc/motd.\\\\\\\"\\\",\\\
  1898. \\\"F:syscfg\\\",\\\
  1899. \\\"\\\\\\\"--Computer Settings\\\\\\\\\\\\\\\
  1900. computername=\\\\\\\\\\\\\\\"MelnikovSM-PC\\\\\\\\\\\\\\\" --Name of that computer\\\\\\\\\\\\\\\
  1901. defaultusername=\\\\\\\\\\\\\\\"MelnikovSM\\\\\\\\\\\\\\\" --Default username\\\\\\\\\\\\\\\
  1902. autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\" --Autologin on computer. May be <user> or <none>\\\\\\\"\\\",\\\
  1903. \\\"F:version\\\",\\\
  1904. \\\"\\\\\\\"0.3.6\\\\\\\"\\\",\\\
  1905. }\",\
  1906. \"D:lib\",\
  1907. \"{\\\
  1908. \\\"F:DebAPI\\\",\\\
  1909. \\\"\\\\\\\"function error(errreq)\\\\\\\\\\\\\\\
  1910. print(\\\\\\\\\\\\\\\"[Error!] \\\\\\\\\\\\\\\", errreq)\\\\\\\\\\\\\\\
  1911. end\\\\\\\\\\\\\\\
  1912. function shutdown()\\\\\\\\\\\\\\\
  1913. print(\\\\\\\\\\\\\\\"Shuting down computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1914. sleep(1)\\\\\\\\\\\\\\\
  1915. os.shutdown()\\\\\\\\\\\\\\\
  1916. end\\\\\\\\\\\\\\\
  1917. function reboot()\\\\\\\\\\\\\\\
  1918. print(\\\\\\\\\\\\\\\"Rebooting computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1919. sleep(1)\\\\\\\\\\\\\\\
  1920. os.reboot()\\\\\\\\\\\\\\\
  1921. end\\\\\\\\\\\\\\\
  1922. function clear()\\\\\\\\\\\\\\\
  1923. term.clear()\\\\\\\\\\\\\\\
  1924. term.setCursorPos(1, 1)\\\\\\\\\\\\\\\
  1925. end\\\\\\\\\\\\\\\
  1926. id=os.getComputerID()\\\\\\\\\\\\\\\
  1927. function clearCache()\\\\\\\\\\\\\\\
  1928. print(\\\\\\\\\\\\\\\"[Debian] Cleaning cache..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1929. pcall(\\\\\\\\\\\\\\\"fs.delete\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1930. pcall(\\\\\\\\\\\\\\\"fs.makeDir\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1931. end\\\\\\\\\\\\\\\
  1932. function time()\\\\\\\\\\\\\\\
  1933. local nTime=os.time()\\\\\\\\\\\\\\\
  1934. \\\\\\\\\\\\\\\
  1935. return textutils.formatTime( nTime, false )\\\\\\\\\\\\\\\
  1936. end\\\\\\\\\\\\\\\
  1937. day=os.day\\\\\\\\\\\\\\\
  1938. function pastebinGet(paste)\\\\\\\\\\\\\\\
  1939. local response = getFile(\\\\\\\\\\\\\\\
  1940. \\\\\\\\\\\\\\\"http://pastebin.com/raw.php?i=\\\\\\\\\\\\\\\"..textutils.urlEncode( paste )\\\\\\\\\\\\\\\
  1941. )\\\\\\\\\\\\\\\
  1942. \\\\\\\\\\\\\\\
  1943. if response then\\\\\\\\\\\\\\\
  1944. local sResponse = response.readAll()\\\\\\\\\\\\\\\
  1945. response.close()\\\\\\\\\\\\\\\
  1946. return sResponse\\\\\\\\\\\\\\\
  1947. end\\\\\\\\\\\\\\\
  1948. end\\\\\\\\\\\\\\\
  1949. function getFile(paste, file)\\\\\\\\\\\\\\\
  1950. local response = getFile(paste)\\\\\\\\\\\\\\\
  1951. \\\\\\\\\\\\\\\
  1952. if response then\\\\\\\\\\\\\\\
  1953. local sResponse = response.readAll()\\\\\\\\\\\\\\\
  1954. response.close()\\\\\\\\\\\\\\\
  1955. local f=fs.open(file, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1956. \\\\\\\\9f.writeLine(sResponse)\\\\\\\\\\\\\\\
  1957. \\\\\\\\9f.close()\\\\\\\\\\\\\\\
  1958. end\\\\\\\\\\\\\\\
  1959. end\\\\\\\\\\\\\\\
  1960. function writeLog(text)\\\\\\\\\\\\\\\
  1961. local syslogr=fs.open(\\\\\\\\\\\\\\\"/var/syslog\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\").readAll()\\\\\\\\\\\\\\\
  1962. local syslog=fs.open(\\\\\\\\\\\\\\\"/var/syslog\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1963. syslog.writeLine(syslogr)\\\\\\\\\\\\\\\
  1964. syslog.writeLine(msg)\\\\\\\\\\\\\\\
  1965. syslog.close()\\\\\\\\\\\\\\\
  1966. end\\\\\\\\\\\\\\\
  1967. function request(req)\\\\\\\\\\\\\\\
  1968. write(req .. \\\\\\\\\\\\\\\"? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1969. local presel=read()\\\\\\\\\\\\\\\
  1970. if presel==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1971. reqselect=true\\\\\\\\\\\\\\\
  1972. end\\\\\\\\\\\\\\\
  1973. if presel==\\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1974. reqselect=true\\\\\\\\\\\\\\\
  1975. end\\\\\\\\\\\\\\\
  1976. if presel==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  1977. reqselect=false\\\\\\\\\\\\\\\
  1978. end\\\\\\\\\\\\\\\
  1979. return reqselect\\\\\\\\\\\\\\\
  1980. end\\\\\\\\\\\\\\\
  1981. function write2file(path, array)\\\\\\\\\\\\\\\
  1982. \\\\\\\\\\\\\\\
  1983. f = fs.open(path, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1984. for i = 1, #array do\\\\\\\\\\\\\\\
  1985. f.writeLine(array[i]) \\\\\\\\\\\\\\\
  1986. end\\\\\\\\\\\\\\\
  1987. f.close()\\\\\\\\\\\\\\\
  1988. end\\\\\\\\\\\\\\\
  1989. \\\\\\\\\\\\\\\
  1990. function readFromFile(path)\\\\\\\\\\\\\\\
  1991. f = fs.open(path, \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  1992. local array = {}\\\\\\\\\\\\\\\
  1993. local i = 1\\\\\\\\\\\\\\\
  1994. local temp\\\\\\\\\\\\\\\
  1995. while true do\\\\\\\\\\\\\\\
  1996. temp = f.readLine()\\\\\\\\\\\\\\\
  1997. if not temp then break end\\\\\\\\\\\\\\\
  1998. array[i] = temp\\\\\\\\\\\\\\\
  1999. i = i + 1\\\\\\\\\\\\\\\
  2000. end\\\\\\\\\\\\\\\
  2001. f.close()\\\\\\\\\\\\\\\
  2002. return array\\\\\\\\\\\\\\\
  2003. end\\\\\\\"\\\",\\\
  2004. \\\"F:DialogAPI\\\",\\\
  2005. \\\"\\\\\\\"local cs=term.isColour()\\\\\\\\\\\\\\\
  2006. function select(title, text, a)\\\\\\\\\\\\\\\
  2007. term.clear()\\\\\\\\\\\\\\\
  2008. if cs==true then\\\\\\\\\\\\\\\
  2009. local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-select\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2010. paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
  2011. end\\\\\\\\\\\\\\\
  2012. term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
  2013. print(title)\\\\\\\\\\\\\\\
  2014. if cs==false then\\\\\\\\\\\\\\\
  2015. term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
  2016. print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2017. end\\\\\\\\\\\\\\\
  2018. term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
  2019. if cs==true then\\\\\\\\\\\\\\\
  2020. term.setBackgroundColor(256)\\\\\\\\\\\\\\\
  2021. term.setTextColor(32768)\\\\\\\\\\\\\\\
  2022. end\\\\\\\\\\\\\\\
  2023. print(text)\\\\\\\\\\\\\\\
  2024. local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 6, 6)\\\\\\\\\\\\\\\
  2025. term.setCursorPos(1,1)\\\\\\\\\\\\\\\
  2026. if cs==true then\\\\\\\\\\\\\\\
  2027. term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
  2028. term.setTextColor(1)\\\\\\\\\\\\\\\
  2029. end\\\\\\\\\\\\\\\
  2030. term.clear()\\\\\\\\\\\\\\\
  2031. return select\\\\\\\\\\\\\\\
  2032. end\\\\\\\\\\\\\\\
  2033. function enter(title, text)\\\\\\\\\\\\\\\
  2034. term.clear()\\\\\\\\\\\\\\\
  2035. if cs==true then\\\\\\\\\\\\\\\
  2036. local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-enter\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2037. paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
  2038. end\\\\\\\\\\\\\\\
  2039. term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
  2040. print(title)\\\\\\\\\\\\\\\
  2041. if cs==false then\\\\\\\\\\\\\\\
  2042. term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
  2043. print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2044. end\\\\\\\\\\\\\\\
  2045. if cs==true then\\\\\\\\\\\\\\\
  2046. term.setBackgroundColor(256)\\\\\\\\\\\\\\\
  2047. end\\\\\\\\\\\\\\\
  2048. term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
  2049. if cs==true then\\\\\\\\\\\\\\\
  2050. term.setTextColor(32768)\\\\\\\\\\\\\\\
  2051. end\\\\\\\\\\\\\\\
  2052. print(text)\\\\\\\\\\\\\\\
  2053. if cs==true then\\\\\\\\\\\\\\\
  2054. term.setTextColor(1)\\\\\\\\\\\\\\\
  2055. end\\\\\\\\\\\\\\\
  2056. term.setCursorPos(7, 9)\\\\\\\\\\\\\\\
  2057. if cs==true then\\\\\\\\\\\\\\\
  2058. term.setBackgroundColor(2048)\\\\\\\\\\\\\\\
  2059. term.setTextColor(1)\\\\\\\\\\\\\\\
  2060. end\\\\\\\\\\\\\\\
  2061. local enter=read()\\\\\\\\\\\\\\\
  2062. term.setCursorPos(1,1)\\\\\\\\\\\\\\\
  2063. if cs==true then\\\\\\\\\\\\\\\
  2064. term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
  2065. term.setTextColor(1)\\\\\\\\\\\\\\\
  2066. end\\\\\\\\\\\\\\\
  2067. term.clear()\\\\\\\\\\\\\\\
  2068. return enter\\\\\\\\\\\\\\\
  2069. end\\\\\\\\\\\\\\\
  2070. function enterPasswd(title, text)\\\\\\\\\\\\\\\
  2071. term.clear()\\\\\\\\\\\\\\\
  2072. if cs==true then\\\\\\\\\\\\\\\
  2073. local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-enter\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2074. paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
  2075. end\\\\\\\\\\\\\\\
  2076. term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
  2077. print(title)\\\\\\\\\\\\\\\
  2078. if cs==false then\\\\\\\\\\\\\\\
  2079. term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
  2080. print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2081. end\\\\\\\\\\\\\\\
  2082. if cs==true then\\\\\\\\\\\\\\\
  2083. term.setBackgroundColor(256)\\\\\\\\\\\\\\\
  2084. term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
  2085. term.setTextColor(32768)\\\\\\\\\\\\\\\
  2086. end\\\\\\\\\\\\\\\
  2087. print(text)\\\\\\\\\\\\\\\
  2088. term.setCursorPos(7, 9)\\\\\\\\\\\\\\\
  2089. if cs==true then\\\\\\\\\\\\\\\
  2090. term.setBackgroundColor(2048)\\\\\\\\\\\\\\\
  2091. term.setTextColor(1)\\\\\\\\\\\\\\\
  2092. end\\\\\\\\\\\\\\\
  2093. local enter=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2094. term.setCursorPos(1,1)\\\\\\\\\\\\\\\
  2095. if cs==true then\\\\\\\\\\\\\\\
  2096. term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
  2097. term.setTextColor(1)\\\\\\\\\\\\\\\
  2098. end\\\\\\\\\\\\\\\
  2099. term.clear()\\\\\\\\\\\\\\\
  2100. return enter\\\\\\\\\\\\\\\
  2101. end\\\\\\\\\\\\\\\
  2102. function request(title, text)\\\\\\\\\\\\\\\
  2103. return select(title, text, {\\\\\\\\\\\\\\\"Yes\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"No\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
  2104. end\\\\\\\"\\\",\\\
  2105. \\\"D:DialogAPI.data\\\",\\\
  2106. \\\"{\\\\\\\
  2107. \\\\\\\"F:dialog-enter\\\\\\\",\\\\\\\
  2108. \\\\\\\"\\\\\\\\\\\\\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2109. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2110. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2111. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2112. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2113. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2114. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2115. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2116. bbbb88bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb88bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2117. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2118. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2119. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2120. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2121. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2122. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2123. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2124. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2125. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2126. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  2127. \\\\\\\"F:dialog-select\\\\\\\",\\\\\\\
  2128. \\\\\\\"\\\\\\\\\\\\\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2129. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2130. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2131. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2132. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2133. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2134. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2135. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2136. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2137. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2138. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2139. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2140. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2141. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2142. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2143. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2144. bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2145. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  2146. bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
  2147. }\\\",\\\
  2148. \\\"F:MenuAPI\\\",\\\
  2149. \\\"\\\\\\\"--MenuAPI by 1Ridav\\\\\\\\\\\\\\\
  2150. --Modified for Debian ComputerCraft by MelnikovSM\\\\\\\\\\\\\\\
  2151. local function mprint(array, this, s1, s2, x, y)\\\\\\\\\\\\\\\
  2152. for i = 1, #array do\\\\\\\\\\\\\\\
  2153. term.setCursorPos(x, y)\\\\\\\\\\\\\\\
  2154. --Check if option selected\\\\\\\\\\\\\\\
  2155. if i == this then \\\\\\\\\\\\\\\
  2156. --Option selected \\\\\\\\\\\\\\\
  2157. write(s1)\\\\\\\\\\\\\\\
  2158. else \\\\\\\\\\\\\\\
  2159. --Option NOT selected\\\\\\\\\\\\\\\
  2160. write(s2)\\\\\\\\\\\\\\\
  2161. end\\\\\\\\\\\\\\\
  2162. --Print the string\\\\\\\\\\\\\\\
  2163. print(array[i])\\\\\\\\\\\\\\\
  2164. y = y + 1 \\\\\\\\\\\\\\\
  2165. end\\\\\\\\\\\\\\\
  2166. end\\\\\\\\\\\\\\\
  2167. \\\\\\\\\\\\\\\
  2168. function CreateMenu(array, state1, state2, pos_x, pos_y)\\\\\\\\\\\\\\\
  2169. local select = 1\\\\\\\\\\\\\\\
  2170. local x, y = term.getCursorPos()\\\\\\\\\\\\\\\
  2171. \\\\\\\\\\\\\\\
  2172. while true do\\\\\\\\\\\\\\\
  2173. term.setCursorPos(x, y)\\\\\\\\\\\\\\\
  2174. mprint(array, select, state1, state2, pos_x, pos_y)\\\\\\\\\\\\\\\
  2175. event, key = os.pullEvent(\\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2176. --Enter\\\\\\\\\\\\\\\
  2177. if key == 28 then \\\\\\\\\\\\\\\
  2178. return select \\\\\\\\\\\\\\\
  2179. end\\\\\\\\\\\\\\\
  2180. \\\\\\\\\\\\\\\
  2181. if #array > 1 then\\\\\\\\\\\\\\\
  2182. --Arrow UP or W key\\\\\\\\\\\\\\\
  2183. if key == 200 or key == 17 then \\\\\\\\\\\\\\\
  2184. \\\\\\\\9\\\\\\\\9 select = select - 1 \\\\\\\\\\\\\\\
  2185. \\\\\\\\9\\\\\\\\9\\\\\\\\9\\\\\\\\\\\\\\\
  2186. if select < 1 then \\\\\\\\\\\\\\\
  2187. select = #array \\\\\\\\\\\\\\\
  2188. end\\\\\\\\\\\\\\\
  2189. --Arrow Down or S key\\\\\\\\\\\\\\\
  2190. elseif key == 208 or key == 31 then \\\\\\\\\\\\\\\
  2191. \\\\\\\\9\\\\\\\\9 select = select + 1 \\\\\\\\\\\\\\\
  2192. \\\\\\\\9\\\\\\\\9\\\\\\\\9 if select > #array then select = 1 end\\\\\\\\\\\\\\\
  2193. \\\\\\\\9 end\\\\\\\\\\\\\\\
  2194. end \\\\\\\\\\\\\\\
  2195. end\\\\\\\\\\\\\\\
  2196. end\\\\\\\"\\\",\\\
  2197. \\\"F:startup\\\",\\\
  2198. \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
  2199. array=fs.list(\\\\\\\\\\\\\\\"/system/lib/\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2200. if args[1]==\\\\\\\\\\\\\\\"--update-index\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  2201. print(\\\\\\\\\\\\\\\"Updating system libs index.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2202. \\\\\\\\\\\\\\\
  2203. f = fs.open(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2204. for i = 1, #array do\\\\\\\\\\\\\\\
  2205. if string.sub(array[i], #array[i]-4, #array[i])==\\\\\\\\\\\\\\\".data\\\\\\\\\\\\\\\" or array[i]==\\\\\\\\\\\\\\\"libs.index\\\\\\\\\\\\\\\" or array[i]==\\\\\\\\\\\\\\\"startup\\\\\\\\\\\\\\\" then sleep(0) else\\\\\\\\\\\\\\\
  2206. f.writeLine(array[i]) \\\\\\\\\\\\\\\
  2207. print(\\\\\\\\\\\\\\\"Library \\\\\\\\\\\\\\\" .. array[i] .. \\\\\\\\\\\\\\\" detected\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2208. sleep(0) end\\\\\\\\\\\\\\\
  2209. sleep(0)\\\\\\\\\\\\\\\
  2210. end\\\\\\\\\\\\\\\
  2211. f.close()\\\\\\\\\\\\\\\
  2212. \\\\\\\\\\\\\\\
  2213. elseif #args==0 or #args[1]==\\\\\\\\\\\\\\\"--reload\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
  2214. if fs.exists(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\")==false then shell.run(\\\\\\\\\\\\\\\"/system/lib/startup --update-index\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
  2215. print(\\\\\\\\\\\\\\\"Loading system libs.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2216. \\\\\\\\\\\\\\\
  2217. f = fs.open(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2218. local array = {}\\\\\\\\\\\\\\\
  2219. local i = 1\\\\\\\\\\\\\\\
  2220. local temp\\\\\\\\\\\\\\\
  2221. while true do\\\\\\\\\\\\\\\
  2222. temp = f.readLine()\\\\\\\\\\\\\\\
  2223. if not temp then break end\\\\\\\\\\\\\\\
  2224. write(\\\\\\\\\\\\\\\"Loading lib \\\\\\\\\\\\\\\" .. temp .. \\\\\\\\\\\\\\\"... \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
  2225. load=os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/\\\\\\\\\\\\\\\" .. temp)\\\\\\\\\\\\\\\
  2226. sleep(0.2)\\\\\\\\\\\\\\\
  2227. if load==true then load=\\\\\\\\\\\\\\\"Success!\\\\\\\\\\\\\\\" else load=\\\\\\\\\\\\\\\"Error!\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
  2228. print(load)\\\\\\\\\\\\\\\
  2229. i = i + 1\\\\\\\\\\\\\\\
  2230. end\\\\\\\\\\\\\\\
  2231. f.close()\\\\\\\\\\\\\\\
  2232. end\\\\\\\"\\\",\\\
  2233. }\",\
  2234. \"F:recovery\",\
  2235. \"\\\"function getFile(paste, file)\\\\\\\
  2236. local response = getFile(paste)\\\\\\\
  2237. \\\\\\\
  2238. if response then\\\\\\\
  2239. local sResponse = response.readAll()\\\\\\\
  2240. response.close()\\\\\\\
  2241. local f=fs.open(file, \\\\\\\"w\\\\\\\")\\\\\\\
  2242. f.writeLine(sResponse)\\\\\\\
  2243. f.close()\\\\\\\
  2244. end\\\\\\\
  2245. end\\\\\\\
  2246. shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
  2247. while true do\\\\\\\
  2248. shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  2249. print(\\\\\\\"Debian CC Recovery Menu\\\\\\\")\\\\\\\
  2250. print(\\\\\\\"Select action:\\\\\\\")\\\\\\\
  2251. if MenuAPI== nil then\\\\\\\
  2252. os.loadAPI(\\\\\\\"/system/lib/MenuAPI\\\\\\\")\\\\\\\
  2253. end\\\\\\\
  2254. local a={\\\\\\\"Repair Autorun files\\\\\\\", \\\\\\\"Start SH\\\\\\\", \\\\\\\"Edit MelnikovSM account settings\\\\\\\", \\\\\\\"Edit root account settings\\\\\\\", \\\\\\\"Open Grub Settings Menu\\\\\\\", \\\\\\\"Change computer settings\\\\\\\", \\\\\\\"Repair computer settings\\\\\\\", \\\\\\\"Uninstall OS\\\\\\\", \\\\\\\"Update/Reinstall OS\\\\\\\", \\\\\\\"Install patch from ARCH\\\\\\\", \\\\\\\"Reboot computer\\\\\\\"}\\\\\\\
  2255. local option=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 1, 4)\\\\\\\
  2256. if option==1 then\\\\\\\
  2257. print(\\\\\\\"Repairing autorun files..\\\\\\\")\\\\\\\
  2258. shell.run(\\\\\\\"rm /home/MelnikovSM/autorun\\\\\\\")\\\\\\\
  2259. shell.run(\\\\\\\"cp /system/defaults/autorun /home/MelnikovSM/autorun\\\\\\\")\\\\\\\
  2260. shell.run(\\\\\\\"rm /root/autorun\\\\\\\")\\\\\\\
  2261. shell.run(\\\\\\\"cp /system/defaults/autorun /root/autorun\\\\\\\")\\\\\\\
  2262. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  2263. sleep(1)\\\\\\\
  2264. end\\\\\\\
  2265. if option==2 then\\\\\\\
  2266. shell.run(\\\\\\\"/system/rootmode\\\\\\\")\\\\\\\
  2267. end\\\\\\\
  2268. if option==3 then\\\\\\\
  2269. shell.run(\\\\\\\"edit /home/MelnikovSM/config\\\\\\\")\\\\\\\
  2270. end\\\\\\\
  2271. if option==4 then\\\\\\\
  2272. shell.run(\\\\\\\"edit /root/config\\\\\\\")\\\\\\\
  2273. end\\\\\\\
  2274. if option==5 then\\\\\\\
  2275. shell.run(\\\\\\\"/boot/grubsm\\\\\\\")\\\\\\\
  2276. end\\\\\\\
  2277. if option==6 then\\\\\\\
  2278. shell.run(\\\\\\\"edit /etc/syscfg\\\\\\\")\\\\\\\
  2279. end\\\\\\\
  2280. if option==7 then\\\\\\\
  2281. shell.run(\\\\\\\"rm /etc/syscfg\\\\\\\")\\\\\\\
  2282. shell.run(\\\\\\\"cp /system/defaults/syscfg /system/syscfg\\\\\\\")\\\\\\\
  2283. end\\\\\\\
  2284. if option==8 then\\\\\\\
  2285. shell.run(\\\\\\\"rm /bin\\\\\\\")\\\\\\\
  2286. shell.run(\\\\\\\"rm /boot\\\\\\\")\\\\\\\
  2287. shell.run(\\\\\\\"rm /system\\\\\\\")\\\\\\\
  2288. shell.run(\\\\\\\"rm /doc\\\\\\\")\\\\\\\
  2289. shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
  2290. shell.run(\\\\\\\"rm /startup\\\\\\\")\\\\\\\
  2291. shell.run(\\\\\\\"rm /var\\\\\\\")\\\\\\\
  2292. os.reboot()\\\\\\\
  2293. end\\\\\\\
  2294. if option==9 then\\\\\\\
  2295. if fs.exists(\\\\\\\"/tmp\\\\\\\")==false then\\\\\\\
  2296. fs.makeDir(\\\\\\\"/tmp\\\\\\\")\\\\\\\
  2297. end\\\\\\\
  2298. getFile(\\\\\\\"http://debiancc.melnikovsm.tk/tools/updater\\\\\\\",\\\\\\\"/tmp/updater\\\\\\\")\\\\\\\
  2299. shell.run(\\\\\\\"/tmp/updater\\\\\\\")\\\\\\\
  2300. read()\\\\\\\
  2301. fs.delete(\\\\\\\"/tmp\\\\\\\")\\\\\\\
  2302. os.reboot()\\\\\\\
  2303. end\\\\\\\
  2304. if option==10 then\\\\\\\
  2305. shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  2306. print(\\\\\\\"Debian CC Patcher\\\\\\\")\\\\\\\
  2307. print(\\\\\\\" \\\\\\\")\\\\\\\
  2308. print(\\\\\\\"Enter path to patch:\\\\\\\")\\\\\\\
  2309. local path=read()\\\\\\\
  2310. if fs.exists(path) then\\\\\\\
  2311. if fs.isDir(path)==false then\\\\\\\
  2312. fs.makeDir(\\\\\\\"/testdir\\\\\\\")\\\\\\\
  2313. local installable=shell.run(\\\\\\\"/system/bin/archiver unzip \\\\\\\" .. path .. \\\\\\\" /testdir\\\\\\\")\\\\\\\
  2314. fs.delete(\\\\\\\"/testdir\\\\\\\")\\\\\\\
  2315. if installable==true then\\\\\\\
  2316. print(\\\\\\\"Patching system..\\\\\\\")\\\\\\\
  2317. shell.run(\\\\\\\"/system/bin/archiver unzip \\\\\\\" .. path .. \\\\\\\" /\\\\\\\")\\\\\\\
  2318. else\\\\\\\
  2319. shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  2320. print(\\\\\\\"Debian CC Patcher\\\\\\\")\\\\\\\
  2321. print(\\\\\\\" \\\\\\\")\\\\\\\
  2322. print(\\\\\\\"Error: Entered file is not archive or corrupted!\\\\\\\")\\\\\\\
  2323. end\\\\\\\
  2324. else print(path, \\\\\\\" is a dir!\\\\\\\") end\\\\\\\
  2325. else print(\\\\\\\"No such file: \\\\\\\", patch) end \\\\\\\
  2326. sleep(2)\\\\\\\
  2327. end\\\\\\\
  2328. if option==11 then os.reboot() end\\\\\\\
  2329. end\\\"\",\
  2330. \"F:rootmode\",\
  2331. \"\\\"login=\\\\\\\"root\\\\\\\"\\\\\\\
  2332. os.loadAPI(\\\\\\\"/root/config\\\\\\\")\\\\\\\
  2333. shell.run(\\\\\\\"/system/auth2\\\\\\\")\\\"\",\
  2334. \"F:start\",\
  2335. \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  2336. print(\\\\\\\"Starting up Debian CC v0.3.8..\\\\\\\")\\\\\\\
  2337. print(\\\\\\\"Copyright (C) MelnikovSM 2013-2015 - Licensed under GNU GPL v3\\\\\\\")\\\\\\\
  2338. if fs.exists(\\\\\\\"/var\\\\\\\")==false then\\\\\\\
  2339. fs.makeDir(\\\\\\\"/var\\\\\\\")\\\\\\\
  2340. end\\\\\\\
  2341. syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  2342. syslog.writeLine(\\\\\\\"Debian CC Startup\\\\\\\")\\\\\\\
  2343. sleep(2)\\\\\\\
  2344. debmode=\\\\\\\"1\\\\\\\"\\\\\\\
  2345. syslog.writeLine(\\\\\\\"Loading system libs..\\\\\\\")\\\\\\\
  2346. if os.loadAPI(\\\\\\\"/system/lib/DebAPI\\\\\\\")==true then\\\\\\\
  2347. syslog.writeLine(\\\\\\\"[Load Lib] Load lib DebAPI [Successful]\\\\\\\")\\\\\\\
  2348. else\\\\\\\
  2349. syslog.writeLine(\\\\\\\"[Load Lib] Load lib DebAPI [Error]\\\\\\\")\\\\\\\
  2350. syslog.writeLine(\\\\\\\"[Fatal Error] Could'nt load system lib!\\\\\\\")\\\\\\\
  2351. end\\\\\\\
  2352. if fs.exists(\\\\\\\"/etc/\\\\\\\")==false then fs.makeDir(\\\\\\\"/etc\\\\\\\") end\\\\\\\
  2353. if fs.exists(\\\\\\\"/etc/syscfg\\\\\\\")==false then\\\\\\\
  2354. syscfg={\\\\\\\
  2355. autologin=\\\\\\\"user\\\\\\\",\\\\\\\
  2356. computername=\\\\\\\"Debian\\\\\\\",\\\\\\\
  2357. defaultusername=\\\\\\\"debian\\\\\\\"\\\\\\\
  2358. } --parameters for no-configfile \\\\\\\
  2359. end\\\\\\\
  2360. if fs.exists(\\\\\\\"/etc/distro\\\\\\\")==true then os.loadAPI(\\\\\\\"/etc/distro\\\\\\\") else\\\\\\\
  2361. distro={\\\\\\\
  2362. name=\\\\\\\"Debian\\\\\\\",\\\\\\\
  2363. version=\\\\\\\"0.3.8\\\\\\\",\\\\\\\
  2364. author=\\\\\\\"MelnikovSM\\\\\\\",\\\\\\\
  2365. site=\\\\\\\"http://melnikovsm.tk\\\\\\\"\\\\\\\
  2366. }\\\\\\\
  2367. end\\\\\\\
  2368. if os.loadAPI(\\\\\\\"/etc/syscfg\\\\\\\")==true then\\\\\\\
  2369. syslog.writeLine(\\\\\\\"[SysCfg] Load system config [Successful]\\\\\\\")\\\\\\\
  2370. else\\\\\\\
  2371. syslog.writeLine(\\\\\\\"[SysCfg] Load system config [Error]\\\\\\\")\\\\\\\
  2372. syslog.writeLine(\\\\\\\"[Error] Could'nt load system config\\\\\\\")\\\\\\\
  2373. syslog.writeLine(\\\\\\\"[Solution] Running system with default params.\\\\\\\")\\\\\\\
  2374. end\\\\\\\
  2375. if syscfg.computername==nil then syscfg.computername='debian' end\\\\\\\
  2376. if fs.exists('/etc/hostname') then\\\\\\\
  2377. local hfile=fs.open('/etc/hostname', 'r')\\\\\\\
  2378. syscfg.computername=hfile.readLine()\\\\\\\
  2379. hfile.close()\\\\\\\
  2380. end\\\\\\\
  2381. shell.run(\\\\\\\"label set \\\\\\\", syscfg.computername)\\\\\\\
  2382. if fs.exists(\\\\\\\"/tmp\\\\\\\") then\\\\\\\
  2383. print(\\\\\\\"Cleaning cache..\\\\\\\")\\\\\\\
  2384. shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
  2385. end\\\\\\\
  2386. shell.run(\\\\\\\"mkdir /tmp\\\\\\\")\\\\\\\
  2387. syslog.writeLine(\\\\\\\"Loading startup programs and libs..\\\\\\\")\\\\\\\
  2388. syslog.close()\\\\\\\
  2389. shell.run(\\\\\\\"/system/Programs/startup\\\\\\\")\\\\\\\
  2390. shell.run(\\\\\\\"/system/lib/startup\\\\\\\")\\\\\\\
  2391. shell.run(\\\\\\\"/system/auth\\\\\\\")\\\"\",\
  2392. }",
  2393. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement