[GSoC] beastie.4th problem

Louisa Luciani lolaluci at gmail.com
Mon Aug 18 14:18:52 PDT 2008


Hi!
I want to add a fancy menu to the LiveDVD to allow users at boot time to choose between UP, SMP and SMP-NOAPIC kernels.
Does anybody know how to get the following piece of code to do that?
I've tried a great number of combinations (just guessing) to no avail. :(


--- /boot/beastie.4th	2008-08-10 20:37:52 +0200
+++ gui/boot/beastie.4th	2008-08-22 15:35:44 +0200
@@ -41,6 +41,8 @@
 variable bootkey
 variable bootacpikey
+variable bootsmpkey
+variable bootsmpnoapickey
 variable bootsafekey
 variable bootverbosekey
 variable bootsinglekey
@@ -157,6 +159,8 @@
 	else
 		-2 bootacpikey !
 	then
+	printmenuitem ."  Boot DragonFly in SMP mode" bootsmpkey !
+	printmenuitem ."  Boot DragonFly in SMP-NOAPIC mode" bootsmpnoapickey !
 	printmenuitem ."  Boot DragonFly in Safe Mode" bootsafekey !
 	printmenuitem ."  Boot DragonFly in single user mode" bootsinglekey !
 	printmenuitem ."  Boot DragonFly with verbose logging" bootverbosekey !
@@ -225,6 +229,14 @@
 			then
 			0 boot
 		then
+		dup bootsmpkey @ = if
+			s" /kernel.smp/modules" s" module_path" setenv
+			s" /kernel.smp/kernel" boot
+		then
+		dup bootsmpnoapickey @ = if
+			s" /kernel.smp/modules" s" module_path" setenv
+			0 s" /kernel.smp/kernel.noapic" boot
+		then
 		dup bootsafekey @ = if
 			s" arch-i386" environment? if
 				s" acpi_load" unsetenv
--
Louisa Luciani
www.lolaluci.se/lolaluci at gmail.com.asc




More information about the Users mailing list