Re: Can this be possible (or BIOS api)

2007-01-22 Thread Shachar Shemesh
Dan Shimshoni wrote: Is there an API which enable me to perform such a task ? Did anybody tried a thing like that ? and in case it is possible - how much complex is it ? How about this (never tried it myself): Make sure /dev/cmos exists, and that the relevant kernel module is available. Set

Re: Can this be possible (or BIOS api)

2007-01-22 Thread Yedidyah Bar-David
2007/1/22, Dan Shimshoni [EMAIL PROTECTED]: Hello linux il , I had been playing with the idea of writing a small utility in C on linux which will enable me to change boot prioirity on a linux machine, so that I will be able to toggle the boot sequence (boot from CD/ not boot from CD). I mean

Re: Can this be possible (or BIOS api)

2007-01-22 Thread Ori Idan
Remember that the CMOS also holds the time so doing such an operation will reset the time. -- Ori Idan On 1/22/07, Shachar Shemesh [EMAIL PROTECTED] wrote: Dan Shimshoni wrote: Is there an API which enable me to perform such a task ? Did anybody tried a thing like that ? and in case it is

Re: Can this be possible (or BIOS api)

2007-01-22 Thread Shachar Shemesh
Ori Idan wrote: Remember that the CMOS also holds the time so doing such an operation will reset the time. I find it highly unlikely that the CMOS holds the real time clock. It's not the sort of thing you save in memory. sunlap:~# cp /dev/nvram /tmp/dump1 ; sleep 10 ; cp /dev/nvram

Re: Can this be possible (or BIOS api)

2007-01-22 Thread Peter
In DOS days I wrote such a thing. It would boot into DOS and then select based on the contents of a file whether to stay in DOS, go on to windows or boot linux using loadlin. The DOS step was necessary because of sound drivers. The utility was also accessible from linux and from windows,

Re: Can this be possible (or BIOS api)

2007-01-22 Thread Michael Vasiliev
On Monday January 22 2007 09:44, Dan Shimshoni wrote: Hello linux il , I had been playing with the idea of writing a small utility in C on linux which will enable me to change boot prioirity on a linux machine, so that I will be able to toggle the boot sequence (boot from CD/ not boot from

Can this be possible (or BIOS api)

2007-01-21 Thread Dan Shimshoni
Hello linux il , I had been playing with the idea of writing a small utility in C on linux which will enable me to change boot prioirity on a linux machine, so that I will be able to toggle the boot sequence (boot from CD/ not boot from CD). I mean the boot sequence which the BIOS saves in CMOS.