if exist /_ISO/AUTO.g4b call /_ISO/AUTO.g4b || if exist /_ISO/AUTO.bmp splashimage /_ISO/AUTO.bmp
if not "%GFX%"=="" gfxmenu /_ISO/%GFX%
if not "%DEFM_AUTO%"=="" default %DEFM_AUTO%
if "%HCOLOUR%"=="" set HCOLOUR=0133
if not exist HDG set HDG=$$STRhAUT
if "%HELPTEXT%"=="" set HELPTEXT=\x20visit www.easy2boot.com
# MAIN HEADING
if not "%CENTREHD%_%RTL"=="_" call /%grub%/centrehd.g4b HDG
if not exist HEADPOS set HEADPOS=0000
set HP=0000 $[0004]                                                                \necho -n -e -P:
write (md)0x220+1 !BAT\necho -n -e -P:%HP%%%^HEADPOS% $[\x25HCOLOUR\x25]%HPAD%%HDG%\necho -n -P:%HBTM% $[\x25FCOLOUR\x25]%HELPTEXT%\0 >> (md)0x3000+0x50
initscript (md)0x220+1
set HP=
set HDG=

#autonumber boot entries with a space after the number
write 0x8274 %AUTONUM% > nul

if not "%pwd%"=="" password %pwd% 
debug 0







