From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VgYom-0006dF-Pv for mharc-grub-devel@gnu.org; Wed, 13 Nov 2013 06:41:08 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgYoj-0006d1-8a for grub-devel@gnu.org; Wed, 13 Nov 2013 06:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VgYoi-00054U-1u for grub-devel@gnu.org; Wed, 13 Nov 2013 06:41:05 -0500 Received: from v6.chiark.greenend.org.uk ([2001:ba8:1e3::]:57761 helo=chiark.greenend.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VgYoh-00054Q-Sz for grub-devel@gnu.org; Wed, 13 Nov 2013 06:41:03 -0500 Received: from [172.20.153.9] (helo=riva.pelham.vpn.ucam.org) by chiark.greenend.org.uk (Debian Exim 4.72 #1) with esmtps (return-path cjwatson@ubuntu.com) id 1VgYoh-0005hF-CB for grub-devel@gnu.org; Wed, 13 Nov 2013 11:41:03 +0000 Received: from ns1.pelham.vpn.ucam.org ([172.20.153.2] helo=riva.ucam.org) by riva.pelham.vpn.ucam.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1VgYog-0007JI-Ik for grub-devel@gnu.org; Wed, 13 Nov 2013 11:41:02 +0000 Date: Wed, 13 Nov 2013 11:41:01 +0000 From: Colin Watson To: grub-devel@gnu.org Subject: Re: 2 quick questions Message-ID: <20131113114101.GA27952@riva.ucam.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:ba8:1e3:: X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2013 11:41:06 -0000 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]