From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 10:05:36 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54626895 for ; Thu, 18 Jun 2015 10:05:36 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [128.39.174.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D68DBEF2 for ; Thu, 18 Jun 2015 10:05:35 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.9/8.14.9) with ESMTP id t5I9v9Gq070582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 18 Jun 2015 11:57:09 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.9/8.14.9/Submit) with ESMTP id t5I9v8Cu070579 for ; Thu, 18 Jun 2015 11:57:08 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Thu, 18 Jun 2015 11:57:08 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD questions Subject: Mirror for http://www.FreeBSD.org/ports/INDEX-{9,10,11}.bz2? Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no X-Mailman-Approved-At: Thu, 18 Jun 2015 11:25:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 10:05:36 -0000 What is most likely an IPv6 routing error beyond NORDUnet: fetch: http://www.FreeBSD.org/ports/INDEX-11.bz2: Network is unreachable prevents make -C /usr/ports fetchindex from completing on an IPv6-only VM. >From the Makefile, I see I can specify an override value for MASTER_SITE_INDEX. So far, I have tried MASTER_SITE_INDEX=http://www.se.FreeBSD.org/ports/ and MASTER_SITE_INDEX=http://www.dk.FreeBSD.org/ports/, but neither mirror carry the INDEX files. Is there such a mirror with IPv6 connectivity. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 12:47:20 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E0F8D0E for ; Thu, 18 Jun 2015 12:47:20 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1624CFC6 for ; Thu, 18 Jun 2015 12:47:19 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-151-206.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.151.206]) by ipmail06.adl2.internode.on.net with ESMTP; 18 Jun 2015 22:17:08 +0930 Message-ID: <5582BDC7.9080203@ShaneWare.Biz> Date: Thu, 18 Jun 2015 22:17:03 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Matthias Apitz , freebsd-questions@freebsd.org Subject: Re: /etc/pccard_ether && assigning IP and routing References: <20150618060534.GA3970@c720-r276659> In-Reply-To: <20150618060534.GA3970@c720-r276659> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 12:47:20 -0000 On 18/06/2015 15:35, Matthias Apitz wrote: > > Hello, > > I own an Ubuntu phone BQ E4.5 and when I attach this on USB to my > FreeBSD netbook the devd(8) launches > > /etc/pccard_ether ue0 start > > which works fine and the interface ue0 comes UP. I'd like to run an > additional script to assign IP via dhcclient, establish a default > route and restart sendmail. I do this manually as root with a script: > > > #!/bin/sh > # > # change routing (...) to the Ubuntu phone BQ Aqaris E4.5 > # > > ifconfig ue0 || { > printf "interface ue0 not found -- exit.\n" > exit 1 > } > > ifconfig wlan0 down > route delete default > > killall dhclient > rm -f /etc/resolv.conf > dhclient ue0 > > /etc/rc.d/sendmail stop > sleep 3 > /etc/rc.d/sendmail start > > I found no way with devd(8) hooks to run this script when interface ue0 > comes up. Any ideas? Thanks in advance. > > matthias > usbconfig will list devices, if your phone is at ugen2.5 then - usbconfig -u 2 -a 5 dump_device_desc | grep idVendor Replace your idvendor in the following - Put the following into /usr/local/etc/devd/myubuntuphone.conf attach 200 { device-name "ue[0-9]+"; match "vendor" "0x056a"; action "/path/to/script options"; }; detach 200 { device-name "ue[0-9]+"; match "vendor" "0x056a"; action "/path/to/script options"; }; -- FreeBSD - the place to B...Software Developing Shane Ambler