From fc28608cd53d7db583d0668af01da2c36e3adc69 Mon Sep 17 00:00:00 2001 From: ZeTriUm Date: Fri, 15 Dec 2017 20:31:32 +0400 Subject: [PATCH] Add support for GeckoLinux --- mbusb.d/gecko.d/generic.cfg | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mbusb.d/gecko.d/generic.cfg 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 +