for isofile in $isopath/slackware*-install-*.iso; do
  if [ -e "$isofile" ]; then
    regexp --set=isoname "$isopath/(.*)" "$isofile"
    submenu "$isoname ->" "$isofile" {
      iso_path="$2"
      loopback loop "$iso_path"
      menuentry "Slackware install" {
        bootoptions="load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
        linux (loop)/kernels/huge.s/bzImage $bootoptions
        initrd (loop)/isolinux/initrd.img
      }
    }
  fi
done
