DIM framebuffer, xrandr, xrandr2, risoluzione, boot, uvesafb, stringa AS String
DIM sframebuffer, sxrandr, sxrandr2, sboot AS NEW String[]
DIM i AS Integer = 0
SHELL "xterm -e 'sudo apt-get install hwinfo v86d" WAIT
SHELL "xterm -e 'sudo hwinfo --framebuffer > ~/.Plymouth_Manager_1.1/temp/frame'" WAIT
framebuffer = File.Load("~/.Plymouth_Manager1.2/temp/frame")
sframebuffer = Split(framebuffer, "\n")
SHELL "xrandr" TO xrandr
sxrandr = Split(xrandr, "\n")
sxrandr2 = Split(sxrandr[0], " ")
sxrandr2.Delete(0, 7)
sxrandr2.Delete(3, 4)
xrandr2 = sxrandr2[0] & sxrandr2[1] & sxrandr2[2]
risoluzione = Replace(xrandr2, ",", "")
PRINT risoluzione
boot = Trim(File.Load("~/.Plymouth_Manager1.2/Settings/boot.txt"))
SHELL "cp /etc/default/" & boot & " ~/.Plymouth_Manager1.2/temp" WAIT
SHELL "mv ~/.Plymouth_Manager1.2/temp/" & boot & " ~/.Plymouth_Manager1.2/temp/grub" WAIT
stringa = File.Load("~/.Plymouth_Manager1.2/temp/grub")
sboot = Split(stringa, "\n")
WHILE i <= 50
IF Left(sboot[i], 26) = "GRUB_CMDLINE_LINUX_DEFAULT"
sboot[i] = "GRUB_CMDLINE_LINUX_DEFAULT='quiet splash nomodeset video=uvesafb:mode_option=" & risoluzione & "-24,mtrr=3,scroll=ywrap'"
TextArea2.Text = TextArea2.Text & sboot[i] & "\n"
ENDIF
IF Left(sboot[i], 12) = "GRUB_GFXMODE"
sboot[i] = "GRUB_GFXMODE=" & risoluzione
TextArea2.Text = TextArea2.Text & sboot[i] & "\n"
ENDIF
IF Left(sboot[i], 19) = "GRUB_GFXPAYLOAD_LINUX"
sboot[i] = ""
TextArea2.Text = TextArea2.Text & sboot[i] & "\n"
ENDIF
TextArea2.Text = TextArea2.Text & sboot[i] & "\n"
i = i + 1
WEND
File.Save(User.Home & "/boot", TextArea2.Text)
uvesafb = "uvesafb mode_option=" & risoluzione & "-24 mtrr=3 scroll=ywrap"
File.Save(User.Home & "/uvs", uvesafb)
SHELL "xterm -e 'sudo mv ~/boot /etc/default/" & boot & " && mv ~/uvs /etc/initramfs-tools/modules && echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash'" WAIT
SHELL "xterm -e 'sudo update-" & boot & "'" WAIT
SHELL "sudo update - initramfs - u" WAIT
SHELL "rm boot && rm uvs" WAIT
e cioè all'ingresso del ciclo WHILE si blocca e mi dice "Out of bounds"....sapreste indicarmene il motivo?