From owner-freebsd-questions@FreeBSD.ORG Sun Jan 24 14:30:05 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E619106568B for ; Sun, 24 Jan 2010 14:30:05 +0000 (UTC) (envelope-from romain.garbage@gmail.com) Received: from mail-iw0-f200.google.com (mail-iw0-f200.google.com [209.85.223.200]) by mx1.freebsd.org (Postfix) with ESMTP id ED0F58FC1A for ; Sun, 24 Jan 2010 14:30:04 +0000 (UTC) Received: by iwn38 with SMTP id 38so2280234iwn.11 for ; Sun, 24 Jan 2010 06:30:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=LglaquWLajX8c8aKz1sQ24KVEwH76jwnPXLtfXujpS4=; b=F8pnTzzDEHB97wC3GoJ0Z3NJyEpkYNH/f8dQBrzLoac40egss7JakYEzg9bx6rY5VX 9bxxCSaaz3PxtCgY8eN7ts/59Qvh1TkYyWoOgt6vQhrYe7KgMZF0/b2usqBVHEuB0eJR XLCMWPKKxXx+9H/vV1p4l4ow3Yf/YUGQir+1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lq4AzXokBvNx0AwaLDLVwig6W2Nhl5lu13trc2kSJg3s/BVD/mak/VYOMRFCHQV09A LMTlqzfvXAmjK8wFDd6PA5RBGoxhdtm6e2+C09S32O1tTcZdOUVHAkfH4FcmWJKECZ3K LMcyauejcSl8+ZzivaCbaJ3PnSii9Jp8oIAok= MIME-Version: 1.0 Received: by 10.231.148.16 with SMTP id n16mr3963112ibv.37.1264341868660; Sun, 24 Jan 2010 06:04:28 -0800 (PST) Date: Sun, 24 Jan 2010 15:04:28 +0100 Message-ID: <7ab0356e1001240604v22d59edfgcb3761b677aea2f3@mail.gmail.com> From: Romain Garbage To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: automating network configuration X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 14:30:05 -0000 Hello, I am looking for a way to automate the configuration of my network depending on its "topology" (don't know if it's the good word) : I would like to check the wired interface to see if a cable is plugged in (by looking at carrier status), if so, bring up the wired interface, if no bring up the wireless interface. Is there a way to do this? I was wondering if it is possible to do so by scripting rc.conf? Thanks in advance for any advice, Romain