From owner-freebsd-net@FreeBSD.ORG Sun Aug 15 12:13:52 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 332A0106566B for ; Sun, 15 Aug 2010 12:13:52 +0000 (UTC) (envelope-from inigoortizdeurbina@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id EF5F98FC12 for ; Sun, 15 Aug 2010 12:13:51 +0000 (UTC) Received: by iwn10 with SMTP id 10so739385iwn.13 for ; Sun, 15 Aug 2010 05:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=7OJmrnaPCn6g072tMsVQ7lhThp+mlvH5s9NoC7TMLDE=; b=mPnPk3ySbxi/HSJUNPkjsiSwg7771ov4ADW5KExAmS4jXNCn2FzQZRXnD8HdkvtME+ 7WP9AIdtYT2dsKKbrImhQMPwmj12dppgvZ4X8KryfWMlT5g8oU/r4W/Sg8a5wnzOnDV5 nogWRlvp0sTzNiWWVNlyhYX7T2SXnwmBODQoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qP226qnn8VWor6n9xGQmu4auVb/95Ss4GuvWl0IvgscufYP2+2OiIcjOpZRWVx1NDW hyUJqbOtcqmxbNAJPCYnCfnHqlYwPY5us1LF9Xw7oJvrmdnTzQChXojqFahziW234O8Q iSq39hAS8G7SYyuO3LBN1gEL63ZKeyIT7vq2c= MIME-Version: 1.0 Received: by 10.231.149.12 with SMTP id r12mr3913305ibv.185.1281872695540; Sun, 15 Aug 2010 04:44:55 -0700 (PDT) Received: by 10.231.118.153 with HTTP; Sun, 15 Aug 2010 04:44:55 -0700 (PDT) In-Reply-To: <20100815085652.GE95405@ibs.dn.ua> References: <20100815085652.GE95405@ibs.dn.ua> Date: Sun, 15 Aug 2010 13:44:55 +0200 Message-ID: From: =?UTF-8?Q?I=C3=B1igo_Ortiz_de_Urbina?= To: Zeus V Panchenko , FreeBSD Net Content-Type: text/plain; charset=UTF-8 Cc: Subject: Re: startup network configuration choice X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 12:13:52 -0000 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 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-unsubscribe@freebsd.org" >