Maybe you could glue some ifstated magic to your script. I heard suggestions like this some time ago on a different list, anyway, I have never tried it myself as running a script to setup my network manually is not inconvenient, after all, I do startx myself everytime I boot the computer :)
If you get anywhere, posting your findings would be helpful and healthy for the archives On 8/15/10, Zeus V Panchenko <z...@ibs.dn.ua> wrote: > Hi All, > > may somebody advice, please ... > > i'd like to get automatic network configuration for my netbook while > startup depending on the network it connected to while starting up ... > > not dhcp, but system startup script to detect the network and to > configure the interfaces > > i have written script which receives arguments -h for home and -j for > job and cosequently configures network, and configured network in > rc.conf for one of the connections (default is job) > > but i'd like the system to do that automaticaly to avoid timeouts of > network services like sshd/sendmail/e.t.c. when i'm starting up with > "wrong" connection > > is there correct way to do that with some of the sturtup scripts or i > have to do that by hands somewhere in rc.early? > > -- > Zeus V. Panchenko > IT Dpt., IBS ltd GMT+2 (EET) > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org" > _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"