i'm still working on my BootCD. I have many troubles fixed by now but still some resist.
There are some issues. For example the defined function. I want to use it to check if a variable with the name for a makro was set within the config-section. Wether or not the makro is called for execution or a simple command like "memdisk image".
So i'm using:
CODE
if defined["$sm11_MAKRO"]; then goto $sm11_MAKRO; else $sm11_CMD $sm11_PARM
but this always ends up within the else condition regardless if the variable exists or not. I've tried defined[$sm11_MAKRO] aswell as defined ["sm11_MAKRO"]. No change so far.
Another thing is the charset used within isolinux/cdshell. Does anyone know which is used? I tried typical DOS-Ascii but that didn't work. I made therefor a small script to display all characters between 128 and 255.
CODE
set textColor=color[white on black]
clear
print "128_Ç 143_Å 158_× 173_¡ 188_+ 203_- 218_+ 233_Ú 248_° \n"
print "129_ü 144_É 159_ƒ 174_« 189_¢ 204_¦ 219_¦ 234_Û 249_¨ \n"
print "130_é 145_æ 160_á 175_» 190_¥ 205_- 220__ 235_Ù 250_· \n"
print "131_â 146_Æ 161_í 176_¦ 191_+ 206_+ 221_¦ 236_ý 251_¹ \n"
print "132_ä 147_ô 162_ó 177_¦ 192_+ 207_¤ 222_Ì 237_Ý 252_³ \n"
print "133_à 148_ö 163_ú 178_¦ 193_- 208_ð 223_¯ 238_¯ 253_² \n"
print "134_å 149_ò 164_ñ 179_¦ 194_- 209_Ð 224_Ó 239_´ 254_¦ \n"
print "135_ç 150_û 165_Ñ 180_¦ 195_+ 210_Ê 225_ß 240_ 255_ \n"
print "136_ê 151_ù 166_ª 181_Á 196_- 211_Ë 226_Ô 241_± \n"
print "137_ë 152_ÿ 167_º 182_Â 197_+ 212_È 227_Ò 242_= \n"
print "138_è 153_Ö 168_¿ 183_À 198_ã 213_i 228_õ 243_¾ \n"
print "139_ï 154_Ü 169_® 184_© 199_Ã 214_Í 229_Õ 244_¶ \n"
print "140_î 155_ø 170_¬ 185_¦ 200_+ 215_Î 230_µ 245_§ \n"
print "141_ì 156_£ 171_½ 186_¦ 201_+ 216_Ï 231_þ 246_÷ \n"
print "142_Ä 157_Ø 172_¼ 187_+ 202_- 217_+ 232_Þ 247_¸ \n"
print "\n"
print "\c07Press a key to exit!"
getkey
clear
clear
print "128_Ç 143_Å 158_× 173_¡ 188_+ 203_- 218_+ 233_Ú 248_° \n"
print "129_ü 144_É 159_ƒ 174_« 189_¢ 204_¦ 219_¦ 234_Û 249_¨ \n"
print "130_é 145_æ 160_á 175_» 190_¥ 205_- 220__ 235_Ù 250_· \n"
print "131_â 146_Æ 161_í 176_¦ 191_+ 206_+ 221_¦ 236_ý 251_¹ \n"
print "132_ä 147_ô 162_ó 177_¦ 192_+ 207_¤ 222_Ì 237_Ý 252_³ \n"
print "133_à 148_ö 163_ú 178_¦ 193_- 208_ð 223_¯ 238_¯ 253_² \n"
print "134_å 149_ò 164_ñ 179_¦ 194_- 209_Ð 224_Ó 239_´ 254_¦ \n"
print "135_ç 150_û 165_Ñ 180_¦ 195_+ 210_Ê 225_ß 240_ 255_ \n"
print "136_ê 151_ù 166_ª 181_Á 196_- 211_Ë 226_Ô 241_± \n"
print "137_ë 152_ÿ 167_º 182_Â 197_+ 212_È 227_Ò 242_= \n"
print "138_è 153_Ö 168_¿ 183_À 198_ã 213_i 228_õ 243_¾ \n"
print "139_ï 154_Ü 169_® 184_© 199_Ã 214_Í 229_Õ 244_¶ \n"
print "140_î 155_ø 170_¬ 185_¦ 200_+ 215_Î 230_µ 245_§ \n"
print "141_ì 156_£ 171_½ 186_¦ 201_+ 216_Ï 231_þ 246_÷ \n"
print "142_Ä 157_Ø 172_¼ 187_+ 202_- 217_+ 232_Þ 247_¸ \n"
print "\n"
print "\c07Press a key to exit!"
getkey
clear
Maybe this is useful to anyone. It was for me!
And a really BIG ISSUE for me: I would really like to have a function which retrieves me the value for a given variablename. Sounds weird? Well, let me explain. A lot of script-lines are of the stile
CODE
if compare["$var1" == "1"]; then goto do1
if compare["$var2" == "1"]; then goto do2
if compare["$var2" == "1"]; then goto do2
etc.
Now if i could use something like
CODE
set count=1
loop:
if compare[getValue("$var$<$count") == "1"]; then goto do$<$count
goto loop
loop:
if compare[getValue("$var$<$count") == "1"]; then goto do$<$count
goto loop
this would save a LOT of code lines, no?
Maybe Mike can tell us more about this?
Thanx, Plauderer