From: <bob...@us...> - 2007-07-15 22:37:53
|
Revision: 1156 http://svn.sourceforge.net/hackndev/?rev=1156&view=rev Author: bobofdoom Date: 2007-07-15 15:37:50 -0700 (Sun, 15 Jul 2007) Log Message: ----------- Commit: Added option for skipping prompts. Build with make DEFINES=-DNOPROMPT_MODE and Cocoboot will not prompt for kernel commmand-line etc, it'll just boot straight away. Modified Paths: -------------- cocoboot/trunk/Changelog cocoboot/trunk/m68k/mainform.c Modified: cocoboot/trunk/Changelog =================================================================== --- cocoboot/trunk/Changelog 2007-07-15 20:12:22 UTC (rev 1155) +++ cocoboot/trunk/Changelog 2007-07-15 22:37:50 UTC (rev 1156) @@ -1,3 +1,5 @@ + - Added compile option for skipping prompts. + version 0.3: - Added overflow-buffer as last resort to allocation problem (slapin's idea) - Cleaned up treo code (removed all #ifdefs) Modified: cocoboot/trunk/m68k/mainform.c =================================================================== --- cocoboot/trunk/m68k/mainform.c 2007-07-15 20:12:22 UTC (rev 1155) +++ cocoboot/trunk/m68k/mainform.c 2007-07-15 22:37:50 UTC (rev 1156) @@ -372,7 +372,7 @@ cmdline_p = FrmGetObjectPtr(form, FrmGetObjectIndex(form, CommandLine)); cmdline_th = MemHandleNew(size); cmdline_tp = MemHandleLock(cmdline_th); - StrCopy(cmdline_tp, "init=/linuxrc root=/dev/mmcblk0p2"); /* default value */ + StrCopy(cmdline_tp, " "); /* default value */ //PrefGetAppPreferences ('CcBt', 1, cmdline_tp, &size, true); MemHandleUnlock(cmdline_th); FldSetTextHandle(cmdline_p, cmdline_th); @@ -384,6 +384,10 @@ kernel_ok = check_image("/zImage"); use_initrd = check_image("/initrd.gz"); +#ifdef NOPROMPT_MODE + if (kernel_ok) boot_linux(); +#endif + } else if (event->eType == menuEvent) { return mainform_menu_event(event->data.menu.itemID); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |