diff --git a/mbusb.d/opnsense.d/generic64.cfg b/mbusb.d/opnsense.d/generic64.cfg new file mode 100644 index 00000000..fbb613df --- /dev/null +++ b/mbusb.d/opnsense.d/generic64.cfg @@ -0,0 +1,17 @@ +for isofile in $isopath/OPNsense-*-amd64.iso; do + if [ -e "$isofile" ]; then + regexp --set=isoname "$isopath/(.*)" "$isofile" + submenu "$isoname ->" "$isofile" { + iso_path="$2" + loopback loop "$iso_path" + menuentry "OPNsense (x86_64)" { + bootoptions="$iso_path type=mfs_root" + kfreebsd (loop)/boot/kernel/kernel + kfreebsd_module $bootoptions + set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/md0 + set kFreeBSD.vfs.root.mountfrom.options=ro + set kFreeBSD.grub.platform=$grub_platform + } + } + fi +done