From: Colin Watson <cjwatson@ubuntu.com>
To: grub-devel@gnu.org
Subject: Re: 2 quick questions
Date: Wed, 13 Nov 2013 11:41:01 +0000 [thread overview]
Message-ID: <20131113114101.GA27952@riva.ucam.org> (raw)
In-Reply-To: <BLU173-W39AF243AC387A08A317F21FDFD0@phx.gbl>
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]
prev parent reply other threads:[~2013-11-13 11:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 15:42 2 quick questions Gerard Butler
2013-11-13 11:41 ` Colin Watson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131113114101.GA27952@riva.ucam.org \
--to=cjwatson@ubuntu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).