From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 9 Sep 2007 18:35:35 +0300 From: Igor Vlasenko To: ALT Linux Community general discussions Message-ID: <20070909153535.GA17653@dad.imath.kiev.ua> References: <200709080814.29920.boiko@tis-dialog.ru> <200709090854.21741.boiko@tis-dialog.ru> <20070909111339.GB19961@wrars-comp.wrarsdomain> <20070909150101.GA6226@procyon.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070909150101.GA6226@procyon.home> User-Agent: Mutt/1.4.2.2i Received-SPF: pass (dad.imath.kiev.ua: domain of vlasenko@dad.imath.kiev.ua designates 127.0.0.1 as permitted sender) receiver=dad.imath.kiev.ua; client-ip=127.0.0.1; helo=dad.imath.kiev.ua; envelope-from=vlasenko@dad.imath.kiev.ua; x-software=spfmilter 0.95 http://www.acme.com/software/spfmilter/ with libspf2; Subject: Re: [Comm] =?utf-8?q?ALTLInux_Desktop_4_=D0=B8_Motorola_L2?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 15:35:37 -0000 Archived-At: List-Archive: List-Post: On Sun, Sep 09, 2007 at 07:01:02PM +0400, Sergey Vlasov wrote: С SUBSYSTEM=="usb_device" надо осторожнее, она сломается на новых 2.6.2x ядрах. надо проверять сразу 2 SUBSYSTEM -- "usb_device" и "usb" Вот как сделано в hplip SUBSYSTEM=="usb", GOTO="hpmud_rules_continue" # For backward compatibility match also against "usb_device": SUBSYSTEM=="usb_device", GOTO="hpmud_rules_continue" GOTO="hpmud_rules_end" LABEL="hpmud_rules_continue" ACTION!="add", GOTO="hpmud_rules_end" SYSFS{idVendor}=="03f0", GROUP="lp", MODE="0664", SYMLINK+="hplip/$attr{manufact urer}-$attr{serial}" LABEL="hpmud_rules_end" > /etc/udev/rules.d/75-moto4lin.rules: > > ACTION!="add", GOTO="moto4lin_rules_end" > SUBSYSTEM!="usb_device", GOTO="moto4lin_rules_end" > > # эту строку повторить для каждого нужного USB ID xxxx:yyyy > SYSFS{idVendor}=="xxxx", SYSFS{idProduct}=="yyyy", MODE="664", GROUP="uucp" > > LABEL="moto4lin_rules_end" > > Аналогичные правила используются в libsane, libpilot-link. > > Хотя, если на том же USB ID отдельным интерфейсом висят ACM и > USB-storage, получится полный доступ к ним мимо драйвера... > _______________________________________________ > community mailing list > community@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/community -- Dr. Igor Vlasenko -------------------- Topology Department Institute of Math Kiev, Ukraine