Re: portupgrade failure

2006-06-20 Thread Todor Dragnev
Hi, I have similar problem and find solution in portupgrade man page: -- Sometimes a database may get corrupt and the pkgtools commands start to abort due to segmentation fault. In such cases, run ``pkgdb -fu'' to rebuild the database, and the problems will go away. If the command

if_ndis values setting problem.

2006-06-20 Thread Anton - Valqk
Hello there, I have problem setting params to the if_ndis card. I'm using asus wl138g which is marvel chipset card. I've compiled the driver using ndisgen and the dmesg says the card is ok. When I try to do ifconfig ndis0 ssid SESS etc (with wep 128bit encryption) the led on the card

Question about current rc scripts

2006-06-20 Thread M.Hirsch
Hello everybody, Before FreeBSD 6.1, I was able to write a rc script which modifies the rc.conf file. All rc scripts exectuted after this first one would use the new rc.conf then. To make this work, I put the script in /etc/rc.d/ and tagged it with BEFORE: rcconf. Unfortunately, rcconf

Re: Question about current rc scripts

2006-06-20 Thread Pete French
What is the correct way for 6-STABLE to achieve what I want to do? (i.e. write the rc.conf from a rc script) I thought rc.conf was simply a script that set some variables. If this is the case then you don't need to overwrite it - you simply need to make your script set the appropriate variables

Re: Question about current rc scripts

2006-06-20 Thread [LoN]Kamikaze
Pete French wrote: What is the correct way for 6-STABLE to achieve what I want to do? (i.e. write the rc.conf from a rc script) I thought rc.conf was simply a script that set some variables. If this is the case then you don't need to overwrite it - you simply need to make your script set

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
I have investigated a bit more. Setting the variables can't work. As far as I can see, rc.conf is sourced from rc.subr. And every single script in /etc/rc.d/ sources rc.subr, so they reload the rc.conf file for each call. The rc scripts are being executed in a sub-shell though. So overwriting

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
Yes, I think this is the solution. It seems to depend on the filename, specifically the .sh extension. CODE (in /etc/rc): /etc/rc.d/*.sh) # run in current shell Thanks, I am testing this now. I'll post back as soon as I got results (1h or so...) M. [LoN]Kamikaze

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
One question remains though: How can I make my script to be the very first rc script to be executed? M. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL

Re: Question about current rc scripts

2006-06-20 Thread Brooks Davis
On Tue, Jun 20, 2006 at 06:50:39PM +0200, M.Hirsch wrote: One question remains though: How can I make my script to be the very first rc script to be executed? Add appropriate BEFORE entries so it is before all unparented scripts. -- Brooks -- Any statement of the form X is the one, true Y

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
As stated in my initial post, I used BEFORE: rcconf up to and including 6.0. So what is an appropriate BEFORE entry for 6-STABLE? Sorry, I really can't find any documentation on this issue, not in UPDATING and not in the mailing list archives either. Thanks, M. Brooks Davis schrieb: Add

Re: Question about current rc scripts

2006-06-20 Thread Pete French
Setting the variables can't work. As far as I can see, rc.conf is sourced from rc.subr. And every single script in /etc/rc.d/ sources rc.subr, so they reload the rc.conf file for each call. Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every

Re: Question about current rc scripts

2006-06-20 Thread Brooks Davis
On Tue, Jun 20, 2006 at 06:58:15PM +0200, M.Hirsch wrote: As stated in my initial post, I used BEFORE: rcconf up to and including 6.0. So what is an appropriate BEFORE entry for 6-STABLE? Sorry, I really can't find any documentation on this issue, not in UPDATING and not in the mailing

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
This is what I initially tried, but it didn't work due to a wrong BEFORE: tag. rcconf was removed from 6-STABLE, so my scripts didn't start at all anymore. Invalid dependencies seem to make rc-scripts not execute *at all* in 6-STABLE. (note taken) So far I think I got it working now. Thanks

Re: Question about current rc scripts

2006-06-20 Thread Brooks Davis
On Tue, Jun 20, 2006 at 07:11:38PM +0200, M.Hirsch wrote: Pete French schrieb: Actually I was suggesting you overwrite rc.conf *itself* with the variable setting code - so every script which reloads it gets the variables set. Surely that would work ? Though it would mean your code would be

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
Ah, ok. I didn't get that correctly before. It's just another shell script - nice hack, thanks ;) M. Brooks Davis schrieb: Pete is suggested that you put the code in /etc/rc.conf. It's just another shell script. -- Brooks ___

Re: Question about current rc scripts

2006-06-20 Thread M.Hirsch
Another problem solved :) So when my script overwrote rc.conf, the file was already loaded and thus overwriting it had no effect. That's why it didn't work. (not with BEFORE: initrandom either). This must have changed somewhen between 6.0 and 6-STABLE because it did work in 6.0. Thanks vm.

Re: bridge.ko, sysctrl.conf and ifconfig_XXX_name, SCSI as a boot device

2006-06-20 Thread Zaphod Beeblebrox
On 6/19/06, Todor Dragnev [EMAIL PROTECTED] wrote: Thanks, I will use if_bridge from now. Anyone have ideas about second problem? Maybe I must remove device usb from GENERIC config and recompile kernel ? This really is an FAQ. There are many ways. You can use the device.hintsfile to tie

if_ndis for Marvell

2006-06-20 Thread Patrick Bowen
Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the following error; In file included from

Re: 'make release' questions...

2006-06-20 Thread Peter Losher
Andrew Li wrote: First, is there any way to instruct 'make release' to just build certain packages (and their dependencies) for inclusion in the release instead of a blanket NOPORTS? There's no need for us spend two/three days From my experience with playing with make release, you can do

Re: if_ndis for Marvell

2006-06-20 Thread Pyun YongHyeon
On Tue, Jun 20, 2006 at 04:04:52PM -0500, Patrick Bowen wrote: Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the following error;

Re: if_ndis for Marvell

2006-06-20 Thread Patrick Bowen
Pyun YongHyeon wrote: On Tue, Jun 20, 2006 at 04:04:52PM -0500, Patrick Bowen wrote: Hello: I have two questions. The first regards support for the Broadcom BCM94318 wireless LAN adapter. When trying to compile the module for if_ndis using bcmwl5.inf and bcmwl5.sys, I get the