X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by mail.alpinelinux.org (Postfix) with ESMTP id DE903DC199C for ; Mon, 23 Jul 2012 01:59:15 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgoKAG6Zu09sr+AN/2dsb2JhbABEsnYDgRiBCIJWHHImJTeIDguYR6EzBItigUSCPGIDjT6HXIVfiDqBWIMF X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="193837311" Received: from 108-175-224-13.dsl.teksavvy.com (HELO waltdnes.org) ([108.175.224.13]) by ironport2-out.teksavvy.com with SMTP; 22 Jul 2012 21:59:13 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sun, 22 Jul 2012 21:58:57 -0400 From: "Walter Dnes" Date: Sun, 22 Jul 2012 21:58:57 -0400 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] Auto(un)mount on an mdev-based multi-user system Message-ID: <20120723015857.GA1116@waltdnes.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi all; I've put together a few scripts that hook into mdev, and enable automounting and unmounting of USB devices. There are examples on the net of doing this for embedded devices, with one user, namely root. Making it viable for a multi-user system, without selling out security, was a challenge. E.g. one should really unmount manually before removing a device that's been written, and I've provided a script for that. It has been working for me for several weeks. The instructions are at https://wiki.gentoo.org/wiki/Mdev/Automount_USB It'll remain flagged as a "Work in progress" until I get more feedback. I'm running this on a Gentoo system, modified to run mdev, but the scripts should be portable to any mdev-based sysytem. I use "#!/bin/busybox ash" to run the scripts. I assume under Alpine it's probably a direct call to ash. Please let me know if there is any Gentoo-specific stuff, beyond the links to package sources. -- Walter Dnes --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---