Re: C code for parsing rc.conf?

2004-04-16 Thread Ash Gokhale
I'll give you another 'easy' hack to contemplate. 6 == 12 * 0,5 Make your tool system('sh /etc/rc.conf'); And then use the native [get|set]env(3) functions to read/write the values you are intested in. When you are ready to commit the process scan **environ (7) to rebuild it without the redund

how to disable/enable kbd during kernel startup?

2004-04-16 Thread HU Xiang-hua
hi, I have tried to display a progress bar during FreeBSD5.2 startup. The method is based on splash_bmp and insert several PROGRESS like Linux Progress Patch into mi_startup and rc.sysinit. It is urgly ,but it do work! :-) Now the problem is: any key pressed during kernel startup will ruin th

Re: C code for parsing rc.conf?

2004-04-16 Thread Craig Rodrigues
On Wed, Apr 14, 2004 at 05:14:54PM -0700, Tim Kientzle wrote: > There was a detailed discussion of this topic about a year > ago. Here is how to obtain the current settings from rc.conf > from within a C program: > > * Clear the current environment > > * popen() a shell command that sources rc