James, You are correct than script could not be use for self-cloning nodes as a general group.
But I think Vivek asked more specific question, e.g load Pfil "on bge1 but not bge0", I feel script can accomplish it for this particular case. If I know exactly which interface pfil needs to be loaded, a easy way is to: 1. comment out pfil.ap for that interface type - bge in this case. 2. create a simple script using ifconfig to insert pfil into the interface "bge1" stack. the script can be put somewhere under /etc/rc2.d Or a safer way: Still use pfil.ap to load pfil to all in interfaces, then use a startup script to unload pfil from the stack of the interface you do not want - bge0 in this case. Andrew On Thu, 2006-10-19 at 15:40 -0400, James Carlson wrote: > Andrew Wenlang Zhu writes: > > On Thu, 2006-10-19 at 10:44 -0700, Vivek Garud wrote: > > > I'm trying to push pfil onto only a specific minor device. > > > Basically I want to be able to push it only onto bge1 interface but not > > > on bge0. > > > I tried editing the pfil.ap file to say something like, > > > > > > bge 0 0 pfil > > > > > > > Pfil.ap uses autoload to push pfil on interfaces. > > > > To push pfil only to certain minor device, you may consider using a > > script to find the minor device then ifconfig to load pfil. > > I don't think that'll actually work as the bge Style 1 minor nodes are > self-cloning. > _______________________________________________ networking-discuss mailing list [email protected]
