Răsfoiți Sursa

Merge pull request #221 from antonym/ipfire

Add support for IPFire
Antony Messerli 7 ani în urmă
părinte
comite
f06aa75371
4 a modificat fișierele cu 42 adăugiri și 0 ștergeri
  1. 1 0
      README.md
  2. 1 0
      docs/index.md
  3. 39 0
      src/ipfire.ipxe
  4. 1 0
      src/linux.ipxe

+ 1 - 0
README.md

@@ -46,6 +46,7 @@ Full documentation is at ReadTheDocs:
 * [FreeBSD](https://freebsd.org)
 * [FreeDOS](http://www.freedos.org)
 * [Gentoo](https://gentoo.org)
+* [IPFire](https://www.ipfire.org)
 * [Mageia](http://www.mageia.org)
 * [Manjaro Linux](https://manjaro.github.io)
 * [Microsoft Windows](https://www.microsoft.com)

+ 1 - 0
docs/index.md

@@ -50,6 +50,7 @@ You'll need to make sure to have [DOWNLOAD_PROTO_HTTPS](https://github.com/ipxe/
 * [FreeBSD](https://freebsd.org)
 * [FreeDOS](http://www.freedos.org)
 * [Gentoo](https://gentoo.org)
+* [IPFire](https://www.ipfire.org)
 * [Mageia](http://www.mageia.org)
 * [Manjaro Linux](https://manjaro.github.io)
 * [Microsoft Windows](https://www.microsoft.com)

+ 39 - 0
src/ipfire.ipxe

@@ -0,0 +1,39 @@
+#!ipxe
+
+# IPFire
+# https://www.ipfire.org/
+
+goto ${menu} ||
+
+:ipfire
+clear osversion
+set os IPFire
+menu ${os} - Image Sig Checks: [${img_sigs_enabled}]
+item 2.19-core118 ${space} ${os} 2.19 Core 118
+isset ${osversion} || choose osversion || goto linux_menu
+echo ${cls}
+set ipfire_mirror downloads.ipfire.org
+set dir releases/ipfire-2.x/${osversion}/images/x86_64
+goto ipfire_images
+
+:ipfire_images
+imgfree
+kernel https://${ipfire_mirror}/${dir}/vmlinuz ${console} vga=791 initrd=instroot
+initrd https://${ipfire_mirror}/${dir}/instroot
+echo
+echo MD5sums:
+md5sum vmlinuz instroot
+iseq ${img_sigs_enabled} true && goto verify_sigs || goto skip_sigs
+:verify_sigs
+echo
+echo Checking signatures...
+imgverify vmlinuz ${sigs}ipfire/${dir}/vmlinuz.sig || goto error
+imgverify instroot ${sigs}ipfire/${dir}/instroot.sig || goto error
+echo Signatures verified!
+echo
+:skip_sigs
+boot
+
+:ipfire_exit
+clear menu
+exit 0

+ 1 - 0
src/linux.ipxe

@@ -19,6 +19,7 @@ item antergos ${space} Antergos
 item coreos ${space} CoreOS
 item devuan ${space} Devuan
 item gentoo ${space} Gentoo Linux
+item ipfire ${space} IPFire
 item rancheros ${space} RancherOS
 item rhel ${space} Red Hat Enterprise Linux
 item scientific ${space} Scientific