diff --git a/mbusb.d/gecko.d/generic.cfg b/mbusb.d/gecko.d/generic.cfg new file mode 100644 index 00000000..93e70b65 --- /dev/null +++ b/mbusb.d/gecko.d/generic.cfg @@ -0,0 +1,20 @@ +for isofile in $isopath/GeckoLinux_*.iso; do + if [ -e "$isofile" ]; then + regexp --set=isoname "$isopath/(.*)" "$isofile" + submenu "$isoname ->" "$isofile" { + iso_path="$2" + loopback loop "$iso_path" + menuentry "GeckoLinux" { + bootoptions="isofrom_device=$imgdevpath isofrom_system=$iso_path ramdisk_size=512000 ramdisk_blocksize=4096" + linux (loop)/boot/*/loader/linux $bootoptions + initrd (loop)/boot/*/loader/initrd + } + menuentry "Failsafe -- GeckoLinux" { + bootoptions="isofrom_device=$imgdevpath isofrom_system=$iso_path ramdisk_size=512000 ramdisk_blocksize=4096 ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processsor.max+cstate=1 nomodeset x11failsafe" + linux (loop)/boot/*/loader/linux $bootoptions + initrd (loop)/boot/*/loader/initrd + } + } + fi +done +