From 5e013988779e8941dc74b1806e41dc1cd10cd4c4 Mon Sep 17 00:00:00 2001 From: Dylan Grafmyre Date: Thu, 14 Dec 2017 23:02:39 -0800 Subject: [PATCH] Freebsd varient, OPNsense --- mbusb.d/opnsense.d/generic64.cfg | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 mbusb.d/opnsense.d/generic64.cfg 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