grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* 2 quick questions
@ 2013-11-09 15:42 Gerard Butler
  2013-11-13 11:41 ` Colin Watson
  0 siblings, 1 reply; 2+ messages in thread
From: Gerard Butler @ 2013-11-09 15:42 UTC (permalink / raw)
  To: grub-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

Is it possible to pass a command to a Linux based OS? So for instance I select Ubuntu or Fedora and I tell it to run some script as soon as it boots and I can put this comand in the menuentry.
My second question is that is it possible to control navigation within GRUB using a joystick? I know it's possible to treat a joystick as a keyboard in several OSes, but at the boot menu I don't if it's possible for that to happen. 		 	   		  

[-- Attachment #2: Type: text/html, Size: 678 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2 quick questions
  2013-11-09 15:42 2 quick questions Gerard Butler
@ 2013-11-13 11:41 ` Colin Watson
  0 siblings, 0 replies; 2+ messages in thread
From: Colin Watson @ 2013-11-13 11:41 UTC (permalink / raw)
  To: grub-devel

On Sat, Nov 09, 2013 at 08:42:56AM -0700, Gerard Butler wrote:
> Is it possible to pass a command to a Linux based OS? So for instance
> I select Ubuntu or Fedora and I tell it to run some script as soon as
> it boots and I can put this comand in the menuentry.

You can put whatever you like on the kernel command line, but the
interpretation of that is up to the operating system you're booting.
You could for example write a generic init script that looks at
/proc/cmdline and acts accordingly.

> My second question is that is it possible to control navigation within
> GRUB using a joystick? I know it's possible to treat a joystick as a
> keyboard in several OSes, but at the boot menu I don't if it's
> possible for that to happen. 		 	   		  

If you manage to find a joystick that supports acting as a USB HID Boot
Protocol keyboard device, then it might work, although of course you'd
need to sort out a keymap.  Otherwise, this would require writing a
custom driver.

-- 
Colin Watson                                       [cjwatson@ubuntu.com]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-13 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-09 15:42 2 quick questions Gerard Butler
2013-11-13 11:41 ` Colin Watson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).