From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28247 invoked from network); 9 Apr 2021 18:12:22 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 9 Apr 2021 18:12:22 -0000 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by 1ess; Fri Apr 9 14:03:58 -0400 2021 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 7D0E11363C5 for <9front@9front.org>; Fri, 9 Apr 2021 14:01:01 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=sasl; bh=vMnVONjQyV3IPtAwOaNrBqP00Dg=; b=lujssmbx5Q93qw6+aOObigMs2ohf 0uF9D5Btcu98BGk6NghjLaHugqlSspzgdkl/0b2m6wSp5JR2iIkM1rDzR9cWI63u WGlytz4PTWwU+yrUs8CD1u+sNx6GRCcQjtLsYi508npewMduDZLAO16r0c1aJtrb I3dYOrBN79YnwPI= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 763F91363C4 for <9front@9front.org>; Fri, 9 Apr 2021 14:01:01 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from [10.0.1.5] (unknown [47.34.135.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id A3ECB1363C0 for <9front@9front.org>; Fri, 9 Apr 2021 14:00:58 -0400 (EDT) (envelope-from unobe@cpan.org) Date: Fri, 09 Apr 2021 18:00:51 +0000 In-Reply-To: <5C069560FA2D542EB4ACE5B77CDDEA42@felloff.net> References: <5C069560FA2D542EB4ACE5B77CDDEA42@felloff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: 9front@9front.org From: Romano Message-ID: <359EBD0C-5E86-4F5D-8271-40F007F5BDDC@cpan.org> X-Pobox-Relay-ID: 89BDB5A6-995D-11EB-8BD5-E43E2BB96649-09620299!pb-smtp20.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: template content-driven framework Subject: Re: [9front] [patch] nusb/ether followup to cs 8387 Reply-To: 9front@9front.org Precedence: bulk On April 8, 2021 7:51:00 PM UTC, cinap_lenrek@felloff=2Enet wrote: >ok, but it nusbrc can be solved much simpler: > >diff -r 4dfbef4fa4ac rc/bin/nusbrc >--- a/rc/bin/nusbrc Sat Apr 03 19:32:47 2021 +0200 >+++ b/rc/bin/nusbrc Thu Apr 08 21:49:21 2021 +0200 >@@ -13,6 +13,8 @@ > switch($4){ > case *01 > nusb/audio $id >+ case ff0202 >+ # RNDIS; handled by /sys/src/9/boot/nusbrc > case *02 > # serial and ethernet > nusb/serial $id Yes, that's better=2E >it is not clear to me why the test -d is needed in cpurc=2E=20 >you ust want to silence the error message from cat? Yes=2E I don't consider it an error to not have an ethernet interface at b= oot=2E If there's no ethernet interface, $ether will be '/net/ether*' becau= se * won't expand=2E $ether/addr will not exist, because $ether is not a di= rectory=2E