From patchwork Sun Nov 2 23:39:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 405986 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 64CB714009F for ; Mon, 3 Nov 2014 10:40:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3E84733334; Sun, 2 Nov 2014 23:40:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iJkeW56uqDUl; Sun, 2 Nov 2014 23:40:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B10D632E99; Sun, 2 Nov 2014 23:40:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1AE831CE5B8 for ; Sun, 2 Nov 2014 23:40:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 14BF191657 for ; Sun, 2 Nov 2014 23:40:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OqakR0f0gxD1 for ; Sun, 2 Nov 2014 23:40:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 546AE9164C for ; Sun, 2 Nov 2014 23:40:27 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id q5so5153366wiv.4 for ; Sun, 02 Nov 2014 15:40:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lOWML9CkkdH/csE0hFnpnLSNGYe0BmpqEBXtMW5CVN4=; b=fUnReXF6a4Q1qdVu7BINJqQckPRbjhK/U2/cpqJ4CEGVq4d/pH1gGfPGgwVsHyaDpr WKpr9xbklE2OUuWY/W1yRMeFflOSHkjuYffUCP9vrrgHFO/ACtynRZtmdnCTkBgZfmFn fbVIKfk7ol+hnaq93QUGl97F9ixGSOybWPdX4ixZy3X89i7jgfRXlm44mPpSWLn9SpYf JQt5MPE/+ndaSln+r+FKuAQoU4NChtiGLj5c/dQM9ivYZot1ZzqZDtiNUgf9OwqSVL0C sIgY8C9qqWWtaufM7rPKGn1ljcOKrQ4NDBoVJoI+m31TY8un8aChf/wth90oeFk6twPr HfiQ== X-Received: by 10.194.2.244 with SMTP id 20mr5438021wjx.4.1414971625771; Sun, 02 Nov 2014 15:40:25 -0800 (PST) Received: from localhost.localdomain (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPSA id ex2sm3266037wib.19.2014.11.02.15.40.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Nov 2014 15:40:25 -0800 (PST) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Mon, 3 Nov 2014 00:39:53 +0100 Message-Id: <1414971595-9972-4-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1414971595-9972-1-git-send-email-maxime.hadjinlian@gmail.com> References: <1414971595-9972-1-git-send-email-maxime.hadjinlian@gmail.com> Subject: [Buildroot] [PATCH 4/6] makedevs: Rework README X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Make all the example as a space separated list. The definition of the different type was modified to look like the same section on the manual. Signed-off-by: Maxime Hadjinlian --- package/makedevs/README | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package/makedevs/README b/package/makedevs/README index 6c54052..70844bf 100644 --- a/package/makedevs/README +++ b/package/makedevs/README @@ -6,7 +6,7 @@ You can do all sorts of interesting things with a device table file. For example, if you want to adjust the permissions on a particular file you can just add an entry like: - /sbin/foobar f 2755 0 0 - - - - - + /sbin/foobar f 2755 0 0 - - - - - and (assuming the file /sbin/foobar exists) it will be made setuid root (regardless of what its permissions are on the host filesystem. @@ -15,20 +15,20 @@ Furthermore, you can use a single table entry to create a many device minors. For example, if I wanted to create /dev/hda and /dev/hda[0-15] I could just use the following two table entries: - /dev/hda b 640 0 0 3 0 0 0 - - /dev/hda b 640 0 0 3 1 1 1 15 + /dev/hda b 640 0 0 3 0 0 0 - + /dev/hda b 640 0 0 3 1 1 1 15 Device table entries take the form of: - + where name is the file name, type can be one of: - f A regular file - d Directory - c Character special device file - b Block special device file - p Fifo (named pipe) + f: A regular file + d: Directory + c: Character special device file + b: Block special device file + p: Fifo (named pipe) uid is the user id for the target file, gid is the group id for the target file. The rest of the entries (major, minor, etc) apply only