#!ipxe menu ISO Directory $file) { $arr[] = $item; } sort($arr); foreach($arr as $item) { if (substr($item,-4) == ".iso") { $bn = basename($item, ".iso"); $urls[] = array($bn,$item); ?> item ${space} choose --default ${menu} menu || goto iso_exit echo ${cls} goto ${menu} || chain ${menu}.ipxe || goto iso_exit goto iso_exit : set util_path set util_file .iso goto boot_memdisk :boot_memdisk imgfree kernel ${memdisk} iso raw initrd --name ${util_file} /pxe/${util_path} echo boot goto iso_exit :iso_exit clear menu exit 0