Skip to contentSkip to conversation

2 quick questions

DISCUSSION Gerard Butler 2 participants 2 messages Nov 9, 2013 – Nov 13, 2013

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 3 lines · Gerard Butler

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.

Quoted 4 lines

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.

Signature · 1 line
Colin Watson                                       [[email protected]]