Re: assigning a value to a variable in 00_header

2012-05-02 Thread Joachim Mammele
e from grub.cfg and not from 00_header - in 00_header a $ needs to be escaped with \ Greetings Joachim Am 02.05.2012 15:12, schrieb Joachim Mammele: Hi everybody, I'd like to add a value to a user variable in 00_header but I get the error "not an assignment". but if I echo direc

Re: assigning a value to a variable in 00_header

2012-05-02 Thread Joachim Mammele
Sorry, the source code examples I've sent are from grub.cfg and not from 00_header - in 00_header a $ needs to be escaped with \ Greetings Joachim Am 02.05.2012 15:12, schrieb Joachim Mammele: Hi everybody, I'd like to add a value to a user variable in 00_header but I get the err

assigning a value to a variable in 00_header

2012-05-02 Thread Joachim Mammele
Hi everybody, I'd like to add a value to a user variable in 00_header but I get the error "not an assignment". but if I echo directly the value everything works fine. What can I do? How can I use a variable my_variable? Is there another way to check for different values of \$? ? Any help w

Re: using a new grub command

2012-04-25 Thread Joachim Mammele
llo. Would the command "hello" be enough or do I need also a "insmod hello"? Am 25.04.2012 11:57, schrieb Vladimir '?-coder/phcoder' Serbinenko: On 25.04.2012 11:46, Joachim Mammele wrote: checkfrontkeysresult = checkfrontkeys; There is no such syntax in neither bash

using a new grub command

2012-04-25 Thread Joachim Mammele
Hi, I've added my code to read the frontkeys to a file \grub-1.99.tar\grub-1.99\grub-1.99\grub-core\commands\i386\pc\checkfrontkeys.c and it compiles fine (with ./configure, make and make install). Later on the scripts install the file correctly as I can see checkfrontkeys.mod in /boot/grub S

Re: select menu item depending on frontkey

2012-04-23 Thread Joachim Mammele
echo "bits9= " echo ${bits9} if [${bits9} = 64]; then set default="1" elif [${bits9} = 32]; then set default="2" elif [${bits9} = 16]; then set default="3" else set default="0" fi Am 23.04.2012 14:56, schrieb Vladimir '?-coder/phco

select menu item depending on frontkey

2012-04-23 Thread Joachim Mammele
Hi, accrding to Vladimirs hints I adapted my grub-configuration. What I changed in /boot/grub/grub.cfg is the following: (I'm aware that editing grub.cfg isn't the best option as it gets rewritten on executing the config-scripts) (the whole file can be found here http://pastebin.com/K57RHjwn)

getting status of frontkeys

2012-03-16 Thread Joachim Mammele
f no key has been pressed. stage2.c has stdlib.h included. I added the program readfrontkey.c to Makefile.am and also adapted Makefile.in Any help woud be apreciated Joachim Mammele P.S. The repository that I use can be found here: http://android-x86.

undefined reference to 'system'

2012-01-24 Thread Joachim Mammele
== -1) relax in GETKEY even if no key has been pressed. stage2.c has stdlib.h included. I added the program readfrontkey.c to Makefile.am and also adapted Makefile.in Any help woud be apreciated Joachim Mammele P.S. The repository that I use can be found here: http://android-x86.git.so