From 241ed2a089c7398673668441dbdcf9d438feed85 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 09:56:17 +0300 Subject: [PATCH 1/9] autoiso.cfg --- config/autoiso.cfg | 92 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 config/autoiso.cfg diff --git a/config/autoiso.cfg b/config/autoiso.cfg new file mode 100644 index 0000000..6509321 --- /dev/null +++ b/config/autoiso.cfg @@ -0,0 +1,92 @@ +# +function pathname { + regexp -s tw '^\([^\)]*\)(.*)$' "$1" + regexp -s $2 '^(.*/)[^/]*$' "$tw" +} + +function scan_isos { + for d in (*,*) ; do + + if ! regexp -s iso_device '\((.*)\)' "$d"; then continue; fi + if regexp 'loop' "$iso_device"; then continue; fi + + set realdev="($iso_device)" + set puredev="$iso_device" + + probe -s devlabel -l "$realdev" + probe -s devfs --fs "$realdev" + + set fs_msg="${devfs}" + set devlabel_msg="" + + if test "$devlabel"; then set devlabel_msg=" \"$devlabel\""; fi + + if regexp "hd0,msdos[12]" "$realdev"; then + set two="USB" + else + set two="HDD" + fi + + submenu " ${two} DISK :=-> ${realdev}${devlabel_msg} [${fs_msg}]" "$realdev" "$puredev" --class ${two} { + set realdev="$2" + set puredev="$3" + set dirs="|" + + for file in "${realdev}"/*.iso "${realdev}"/*/*.iso; do + if [ ! -f "$file" ]; then continue; fi + + set isopath="" + pathname "$file" isopath + + if [ -z "$isopath" ]; then set isopath="/"; fi + if regexp "\|${isopath}\|" "$dirs"; then continue; fi + set dirs="${dirs}${isopath}|" + + if regexp "hd0,msdos[12]" "$realdev"; then set tws="USB"; else set tws="HDD"; fi + + submenu " ${tws} DİZİN :=-> ${realdev}${isopath}" "$realdev" "$isopath" --class diriso { + set dev="" + set iso_dir="$3" + + if regexp ',' "$2"; then + regexp -s dev '^\(([^,]+)' "$2" + else + regexp -s dev '^\(?([^\)]+)\)?' "$2" + fi + + regexp -s iso_dir '^(.*)/$' "$iso_dir" + + export dev + export iso_dir + + echo -e "\ YAPILANDIRMAYA AKTARILAN DEĞİŞKENLER" + echo -e "\-------------------------------------------------" + echo "" + echo -e "\ SEÇİLEN DİSK (dev) : $2" + echo "" + echo -e "\ HEDEF KLASÖR (iso_dir) : "$iso_dir" " + echo "" + echo -e "\-------------------------------------------------" + echo "" + echo "" + echo -e "\ !!! DİKKAT \ $2$3 Seçtiğiniz klasör adında BOŞLUK olmamalı " + echo -e "\-------------------------------------------------" + echo "" + echo -e "\ ... Yapılandırma dosyalarıyla eşleştirme başlıyor... " + + for cfgfile in /MultiOS-USB/config/*/*.cfg /MultiOS-USB/config_priv/*/*.cfg; do + if [ -f "$cfgfile" ]; then + source "$cfgfile" + fi + done + } + done + } + done +} + +if [ -z "$iso_dir" ]; then + set iso_dir="/" +fi + +scan_isos "$iso_dir" From a7ddce8d59bd4f1b3a513e979f052a0d5290e98c Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:01:46 +0300 Subject: [PATCH 2/9] hwinfo hwinfo.cfg --- config/hwinfo.cfg | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 config/hwinfo.cfg diff --git a/config/hwinfo.cfg b/config/hwinfo.cfg new file mode 100644 index 0000000..b8b3702 --- /dev/null +++ b/config/hwinfo.cfg @@ -0,0 +1,77 @@ +# +set cpu_brand="-" +smbios -t 4 -s 0x10 --set=cpu_brand + +set system_vendor="-" +smbios -t 1 -s 0x04 --set=system_vendor +set system_product="-" +smbios -t 1 -s 0x05 --set=system_product +set system_version="-" +smbios -t 1 -s 0x06 --set=system_version + +set board_vendor="-" +smbios -t 2 -s 0x04 --set=board_vendor +set board_product="-" +smbios -t 2 -s 0x05 --set=board_product +set board_version="-" +smbios -t 2 -s 0x06 --set=board_version + +set bios_vendor="-" +smbios -t 0 -s 0x04 --set=bios_vendor +set bios_version="-" +smbios -t 0 -s 0x05 --set=bios_ver +set bios_date="-" +smbios -t 0 -s 0x08 --set=bios_date +set bios_size="-" +smbios -t 0 -b 0x09 --set=bios_size + +smbios -t 17 --match 1 --get-word 0x0c --set=r1 +smbios -t 17 --match 2 --get-word 0x0c --set=r2 +smbios -t 17 --match 3 --get-word 0x0c --set=r3 +smbios -t 17 --match 4 --get-word 0x0c --set=r4 + +if [ -z "$r1" ]; then set r1=0; fi +if [ -z "$r2" ]; then set r2=0; fi +if [ -z "$r3" ]; then set r3=0; fi +if [ -z "$r4" ]; then set r4=0; fi + +if [ "$shim_lock" = "y" ]; then + grub_secureboot="Enabled" +else + grub_secureboot="Disabled" +fi + + +echo "" +echo -e "\MultiOS-USB Versiyon " +cat $versiyon + +echo "" +echo -e "\ Platform $grub_cpu-$grub_platform " +echo "" +echo -e "\ Secureboot $grub_secureboot " +echo "" +echo -e "\ CPU Model $cpu_brand" +echo -e "\ Physical RAM ${r1} | ${r2} | ${r3} | ${r4} MB " + +echo "" +echo -e "\ Manufacturer $system_vendor " +echo -e "\ Product Name $system_product " +echo -e "\ Version $system_version " + +echo "" +echo -e "\ Board Manufacturer $board_vendor " +echo -e "\ Board Name $board_product " +echo -e "\ Board Version $board_version " + +echo "" +echo -e "\ BIOS Manufacturer $bios_vendor " +echo -e "\ BIOS Version $bios_ver " +echo -e "\ BIOS Date $bios_date " +echo -e "\ BIOS ROM Size $bios_size " + + +echo -en "\n\n\nÇıkmak için ENTER Tuşuna basın ..." +read + + From d5955bed0b3e63e6db2d6ac258bac50713ada7e4 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:13:49 +0300 Subject: [PATCH 3/9] Delete config/autoiso.cfg --- config/autoiso.cfg | 92 ---------------------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 config/autoiso.cfg diff --git a/config/autoiso.cfg b/config/autoiso.cfg deleted file mode 100644 index 6509321..0000000 --- a/config/autoiso.cfg +++ /dev/null @@ -1,92 +0,0 @@ -# -function pathname { - regexp -s tw '^\([^\)]*\)(.*)$' "$1" - regexp -s $2 '^(.*/)[^/]*$' "$tw" -} - -function scan_isos { - for d in (*,*) ; do - - if ! regexp -s iso_device '\((.*)\)' "$d"; then continue; fi - if regexp 'loop' "$iso_device"; then continue; fi - - set realdev="($iso_device)" - set puredev="$iso_device" - - probe -s devlabel -l "$realdev" - probe -s devfs --fs "$realdev" - - set fs_msg="${devfs}" - set devlabel_msg="" - - if test "$devlabel"; then set devlabel_msg=" \"$devlabel\""; fi - - if regexp "hd0,msdos[12]" "$realdev"; then - set two="USB" - else - set two="HDD" - fi - - submenu " ${two} DISK :=-> ${realdev}${devlabel_msg} [${fs_msg}]" "$realdev" "$puredev" --class ${two} { - set realdev="$2" - set puredev="$3" - set dirs="|" - - for file in "${realdev}"/*.iso "${realdev}"/*/*.iso; do - if [ ! -f "$file" ]; then continue; fi - - set isopath="" - pathname "$file" isopath - - if [ -z "$isopath" ]; then set isopath="/"; fi - if regexp "\|${isopath}\|" "$dirs"; then continue; fi - set dirs="${dirs}${isopath}|" - - if regexp "hd0,msdos[12]" "$realdev"; then set tws="USB"; else set tws="HDD"; fi - - submenu " ${tws} DİZİN :=-> ${realdev}${isopath}" "$realdev" "$isopath" --class diriso { - set dev="" - set iso_dir="$3" - - if regexp ',' "$2"; then - regexp -s dev '^\(([^,]+)' "$2" - else - regexp -s dev '^\(?([^\)]+)\)?' "$2" - fi - - regexp -s iso_dir '^(.*)/$' "$iso_dir" - - export dev - export iso_dir - - echo -e "\ YAPILANDIRMAYA AKTARILAN DEĞİŞKENLER" - echo -e "\-------------------------------------------------" - echo "" - echo -e "\ SEÇİLEN DİSK (dev) : $2" - echo "" - echo -e "\ HEDEF KLASÖR (iso_dir) : "$iso_dir" " - echo "" - echo -e "\-------------------------------------------------" - echo "" - echo "" - echo -e "\ !!! DİKKAT \ $2$3 Seçtiğiniz klasör adında BOŞLUK olmamalı " - echo -e "\-------------------------------------------------" - echo "" - echo -e "\ ... Yapılandırma dosyalarıyla eşleştirme başlıyor... " - - for cfgfile in /MultiOS-USB/config/*/*.cfg /MultiOS-USB/config_priv/*/*.cfg; do - if [ -f "$cfgfile" ]; then - source "$cfgfile" - fi - done - } - done - } - done -} - -if [ -z "$iso_dir" ]; then - set iso_dir="/" -fi - -scan_isos "$iso_dir" From 918a0dcf85a182a9e514c07ed78a8e249b217d65 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:26:50 +0300 Subject: [PATCH 4/9] Modify grub.config to update ISO directory and version Comment out the iso_dir variable and add grub_version handling. --- config/grub.config | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/config/grub.config b/config/grub.config index da1b473..4f030c5 100644 --- a/config/grub.config +++ b/config/grub.config @@ -28,9 +28,9 @@ regexp -s dev '^(.*),' "$root" probe --fs-uuid $root --set=rootuuid set imgdevpath="/dev/disk/by-uuid/$rootuuid" set pager=1 -set iso_dir="/ISOs" +#set iso_dir="/ISOs" set theme_path="/MultiOS-USB/themes/MultiOS-USB/theme.txt" -export dev rootuuid imgdevpath iso_dir +export dev rootuuid imgdevpath if [ -e "$theme_path" ]; then set theme="$theme_path" @@ -83,6 +83,12 @@ function find_grub_cfg { } } +set grub_version="/MultiOS-USB/config/config.version" +if [ -e "$grub_version" ]; then + set versiyon="$grub_version" + export versiyon +fi + function LOOPBACK { if [ -e (loop) ]; then loopback --delete loop @@ -90,11 +96,10 @@ function LOOPBACK { loopback loop "$1" } -submenu "Auto-detect ISOs/WIMs (Directory: $iso_dir) -->" { - echo -n "Loading configuration files... " - for cfgfile in /MultiOS-USB/config/*/*.cfg /MultiOS-USB/config_priv/*/*.cfg; do - source "$cfgfile" - done +source /MultiOS-USB/config/autoiso.cfg + +submenu "Bilgisayar Donanım Bilgileri (hwinfo.cfg) -->" --class=hwinfo { + configfile /MultiOS-USB/config/hwinfo.cfg } if [ "${grub_platform}" == "pc" ]; then From a276574fd7f97ef26cf026e8d23e7a78e4a2bffc Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:47:57 +0300 Subject: [PATCH 5/9] Create icons --- themes/MultiOS-USB/icons | 1 + 1 file changed, 1 insertion(+) create mode 100644 themes/MultiOS-USB/icons diff --git a/themes/MultiOS-USB/icons b/themes/MultiOS-USB/icons new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/themes/MultiOS-USB/icons @@ -0,0 +1 @@ + From bf8dc972c429cfc60fea9f5acecf7f12e3787109 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:48:43 +0300 Subject: [PATCH 6/9] Delete themes/MultiOS-USB/icons --- themes/MultiOS-USB/icons | 1 - 1 file changed, 1 deletion(-) delete mode 100644 themes/MultiOS-USB/icons diff --git a/themes/MultiOS-USB/icons b/themes/MultiOS-USB/icons deleted file mode 100644 index 8b13789..0000000 --- a/themes/MultiOS-USB/icons +++ /dev/null @@ -1 +0,0 @@ - From 199fcf486144d6e70821c5a8a0ce2aaf14adcf04 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:49:40 +0300 Subject: [PATCH 7/9] Create HDD.png --- themes/MultiOS-USB/icons/HDD.png | 1 + 1 file changed, 1 insertion(+) create mode 100644 themes/MultiOS-USB/icons/HDD.png diff --git a/themes/MultiOS-USB/icons/HDD.png b/themes/MultiOS-USB/icons/HDD.png new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/themes/MultiOS-USB/icons/HDD.png @@ -0,0 +1 @@ + From 1efca6d65635bb5c112f1d20b13806cb87fb9a5a Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Wed, 29 Jul 2026 10:50:34 +0300 Subject: [PATCH 8/9] Add files via upload --- themes/MultiOS-USB/icons/HDD.png | Bin 1 -> 1230 bytes themes/MultiOS-USB/icons/USB.png | Bin 0 -> 971 bytes themes/MultiOS-USB/icons/hwinfo.png | Bin 0 -> 1403 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 themes/MultiOS-USB/icons/USB.png create mode 100644 themes/MultiOS-USB/icons/hwinfo.png diff --git a/themes/MultiOS-USB/icons/HDD.png b/themes/MultiOS-USB/icons/HDD.png index 8b137891791fe96927ad78e64b0aad7bded08bdc..a4d9b955737f16c2e3dc0b6e94893b4e8347763b 100644 GIT binary patch literal 1230 zcmV;<1Tp)GP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1Y=1=K~z{rwN_7P z990pghC;a*+7hpj5HrYx5+=g!`fkZ zcsR|n z895^%hq0D?=LyoUK27ltMoBvsqv*58DD~ZQl)8F`^s~q1ZZGc1fKWdQ`O$=&0W4!p zJDnu^ha!dIVKUA?g1*wJQ8vlERv_cju-xoLPX=(vvf1oimw}KGrqqYyf-E<2vr4o9 zCba!xEH@~U-=%O$mm9q3Y5*&rn3%9OH#c9FOZ#XzWc_l7to$7z2f=Z$4(^$zT=Ao$ z0SgNYsp;wI?cLqo2)CFU&Yn$`kJhR3@w$)|LTBzH8c&h4RU=eBg-*mN^7(-_^yNaBImK zYATVqg;Wd<3=CW@7K=~T>vj3$E^xTM2gs=hIB!gf&D*f80ZU6u#@yW8#?H=;r+MMQ zw@Ak;$^*u|T)_$=`r@YrQbAX0n${eZ+>UOe6^WDuVHo=@ z*9D71`%E|?!3DTnnlRUlgZ=;@8v$n zA-sNI!tjpovJMqx*6pc*a=Dyk&tHru=z@_X9UetaCdqi?6lo8|<*xQ%&l&7}JFpHZ z3iyhUUw$`{p||_*r>9~D#V?+s=*2AQuRbhyw1;I`B5fRQF3?`!+r`E8-hV~9TrE?6 z5BK}>O>(aNL)!QM${p?D{=;IKjo`XKO695_%_8KyaH}xJ#>Oa<$q1Rj2Pn^4!5yI# z1%Xq_w==G9%IEW94Z1`(u>wPp9o^?E13X=TLpaW&S{1R@l;LUMdM{M( zvJTb-+1mwd(dz1I25qv#Ays70+%jLioDvSLdtWy)@Xl@4!Mel(z+o_vf~cH}NbtzY z4lDF-xRpb9nGHAx`3iUrhI}TT95JBtF$~wi6*hn^`T~3n)@0- s9Q@Tg1qOdVA0GI!_yhd>#>#m0f6v>88RlyK!~g&Q07*qoM6N<$f|)l|!~g&Q literal 1 Icmd-A000XB3jhEB diff --git a/themes/MultiOS-USB/icons/USB.png b/themes/MultiOS-USB/icons/USB.png new file mode 100644 index 0000000000000000000000000000000000000000..a1f422afa67dd7e845e2a687152f2d1fe3445b3d GIT binary patch literal 971 zcmV;+12p`JP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D17Jx+K~z{r?Uldm9AFi*jtEQ$Vd3$@)NB*9&vND;RocvaRL$@+GIOx;K!Q9-OEG{l8 z-L=IOu&}V8_k4?y5^r#OG^MJwwUq-PGc!}JuCCgVPEjkexw$Ec ziHXd!!{LzC)m6E@y=APGz`#IS)QQ!mrKQR2?5rz2o0P4fpg@aJYIt~<{>H|J zLVc8!lqgLUpJ}U7jg5_Jd3l*WxV*e%jPV`MmYbWa+S=MwQBe{7ii!#7fW^lNKtB_<|@D}aw3f`$M7{w@g#3DVHepuh2zh=>R*RMOMa>Ek^>0oJWE9vA`) zUsKJ#wo2*f=#bOXQ~E0_D^grsEYHu+lAN5(SUWtwYd`_WwKwo0Ub?@(r*%4=sBH6t zsEe+yE(r|{6)g=MvjdAPEG(4m?QMO;1qHmkywCyOl+Mr3)7ID5%hc4AgolSS7Dd|G z*~$3h<739yf!L>~r!S|10z4V_5KPM-Lc4uctYHDg^X=%wUFguW$Hz-tT$~&o9hr3z9UaZ97#EWrxVo|JC}hN;0b|jo z0PTz_RJ5;|n3xdl+Vy(OTyiu}NWKR3^WEgY6o4aw``Q;^yV3Ud_rIMSdsW$)s002ovPDHLkV1nu|%%T7Q literal 0 HcmV?d00001 diff --git a/themes/MultiOS-USB/icons/hwinfo.png b/themes/MultiOS-USB/icons/hwinfo.png new file mode 100644 index 0000000000000000000000000000000000000000..4791482b697e05f49b1f4e46fec1a15f0584e764 GIT binary patch literal 1403 zcmV->1%&#EP)BMpz5wwk!TcPY7OCR83HUjA%ZFb?YI zn%R8-RKaZYV&yq`X<)fvP{pOFP(H62_OQVZ$JiPEDsKy}0000PbVXQnQ*UN;cVTj6 z0C#tHE@^ISb7Ns}WiD@WXPfRk8UO$QA9O`nbW~|{Y-IpYVQ^(~AW36yZXi@>Wo>03 zRAp^&Y+-a|;}Yj}000D9Nklfdf z2`N&(07w-gQq?ceH(vP+MZETfAk+tVVN;7DgbJboBC%KMVwR>=w$`y@dpz5{hX==yF8Zb%y)K5Braqhk-HF;QAxE?t&We52Y@Jm zvCCt5pN>~8+divM{eb<52(%cvE5=+1RPDp@(eZ`@;3~H>OoFqGs5zV(onbXIyDf1n zr{8ycNga0rXaUUDDz0m({#4S8h$x8!5TFFBu#MvoYshtL|j{e zA`+4xBXlW2qFwTz0ei^7JC=p4Qi-H?E5a3kRY?N6lwj_e-SG}c4TKc;D5!PyZEYOQ zu0_5^5t}~JjR60%o&Y=nc%J76}3g0@1;I8O0(|-CR<#afsQ`n z?xzXmMH2l3Mg1k7J-@QrZ2};zLj<{Kw!_w$6aDbPGVX2hf=!^`X&a=X+ooxF@GLKhkRY=O#jC8!cEP1sc&a zSZLBDap3(;09=Ljluej~NWArWEXpA+_S5JaZbiOhw%QOK)WTuU#P%R>{W`q?KxGuU z69ux*<+t4rXp`q&a1yb)SigT+2!wMJ;mY-T2u(JRosJwjFfg?dz)~n*Vfov)2+=;V z9zq^^1Em0bK|L=z*}=$$iJxsRPhl3R7*=T&9@m zcRkD7>!a))5|P+VBKHP&<3ThI4^an#F`*8tzlbD}1F&%IcCC=>{2*J)d3~L#@6A`F zXKzln?UGSiXY%$WZ{HebHujMR1P~Dso!*bD^Iy!*UT@d{0Op78tA zC$p!DSvoo#VXI%k(d=;pW@;TwHxCiZ>f4Za6{iLq>M?v)N~tI9&_%?gRb83+G@L74 z3@^M99RCBqx8)p?N6d*{SEsJ4{N8hIt>5-002ov JPDHLkV1jOxd%pkx literal 0 HcmV?d00001 From 85dff890784e760e2c36647116b6d68744880961 Mon Sep 17 00:00:00 2001 From: Tnctr-altay-24 Date: Fri, 7 Aug 2026 08:18:04 +0300 Subject: [PATCH 9/9] Add files via upload --- config/autoiso.cfg | 143 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 config/autoiso.cfg diff --git a/config/autoiso.cfg b/config/autoiso.cfg new file mode 100644 index 0000000..63fd0c0 --- /dev/null +++ b/config/autoiso.cfg @@ -0,0 +1,143 @@ +rmmod echo +insmod (hd0,msdos2)/boot/grubfm/x86_64-efi/echo.mod +#set lang="tr_TR" + +function pathname { + regexp -s tw '^\([^\)]*\)(.*)$' "$1" + regexp -s $2 '^(.*/)[^/]*$' "$tw" +} + +function scan_isos { + for d in (*,*) ; do + + if ! regexp -s iso_device '\((.*)\)' "$d"; then continue; fi + if regexp 'loop' "$iso_device"; then continue; fi + + set realdev="($iso_device)" + set puredev="$iso_device" + + probe -s devlabel -l "$realdev" + probe -s devfs --fs "$realdev" + + set fs_msg="${devfs}" + set devlabel_msg="" + + if test "$devlabel"; then set devlabel_msg=" \"$devlabel\""; fi + + if regexp "hd0,msdos[12]" "$realdev"; then + set two="USB" + else + set two="HDD" + fi + + submenu " ${two} DISK :=-> ${realdev}${devlabel_msg} [${fs_msg}]" "$realdev" "$puredev" --class ${two} { + unset theme + + if test $SECOND -le 11; then + set x=1 + elif test $SECOND -le 23; then + set x=2 + elif test $SECOND -le 35; then + set x=3 + elif test $SECOND -le 47; then + set x=4 + else + set x=5 + fi + + set theme_path="/MultiOS-USB/themes/MultiOS-USB/theme${x}.txt" + + if [ -e "$theme_path" ]; then + set theme="$theme_path" + export theme + else + set theme="/MultiOS-USB/themes/MultiOS-USB/theme.txt" + export theme + fi + + set realdev="$2" + set puredev="$3" + set dirs="|" + + for file in "${realdev}"/*.iso "${realdev}"/*/*.iso; do + if [ ! -f "$file" ]; then continue; fi + + set isopath="" + pathname "$file" isopath + + if [ -z "$isopath" ]; then set isopath="/"; fi + if regexp "\|${isopath}\|" "$dirs"; then continue; fi + set dirs="${dirs}${isopath}|" + + if regexp "hd0,msdos[12]" "$realdev"; then set tws="USB"; else set tws="HDD"; fi + + submenu " ${tws} DİZİN :=-> ${realdev}${isopath}" "$realdev" "$isopath" --class diriso { + unset theme + + if test $SECOND -le 11; then + set x=1 + elif test $SECOND -le 23; then + set x=2 + elif test $SECOND -le 35; then + set x=3 + elif test $SECOND -le 47; then + set x=4 + else + set x=5 + fi + + set theme_path="/MultiOS-USB/themes/MultiOS-USB/theme${x}.txt" + + if [ -e "$theme_path" ]; then + set theme="$theme_path" + export theme + else + set theme="/MultiOS-USB/themes/MultiOS-USB/theme.txt" + export theme + fi + + set dev="" + set iso_dir="$3" + + if regexp ',' "$2"; then + regexp -s dev '^\(([^,]+)' "$2" + else + regexp -s dev '^\(?([^\)]+)\)?' "$2" + fi + + regexp -s iso_dir '^(.*)/$' "$iso_dir" + + export dev + export iso_dir + + echo -e "\e0xe1 YAPILANDIRMAYA AKTARILAN DEĞİŞKENLER" + echo -e "\e0x5f-------------------------------------------------" + echo "" + echo -e "\e0x1f SEÇİLEN DİSK (dev) : $2" + echo "" + echo -e "\e0x1f HEDEF KLASÖR (iso_dir) : "$iso_dir" " + echo "" + echo -e "\e0x5f-------------------------------------------------" + echo "" + echo "" + echo -e "\e0x8e !!! DİKKAT \e0xf1 $2$3 \e0x9f klasör adında BOŞLUK olmamalı " + echo -e "\e0x5f-------------------------------------------------" + echo "" + echo -e "\e0x2b ... Yapılandırma dosyalarıyla eşleştirme başlıyor... " + + for cfgfile in /MultiOS-USB/config/*/*.cfg /MultiOS-USB/config_priv/*/*.cfg; do + if [ -f "$cfgfile" ]; then + source "$cfgfile" + fi + done + } + done + } + done +} + +if [ -z "$iso_dir" ]; then + set iso_dir="/" +fi + +scan_isos "$iso_dir"