From patchwork Sun Nov 2 23:39:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 405987 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 BA85A14008C for ; Mon, 3 Nov 2014 10:40:45 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CBE6832F0C; Sun, 2 Nov 2014 23:40:44 +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 FAGqZ8PzObaR; Sun, 2 Nov 2014 23:40:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AB3513308C; Sun, 2 Nov 2014 23:40:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1779E1CE5B8 for ; Sun, 2 Nov 2014 23:40:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 137ECA11A4 for ; Sun, 2 Nov 2014 23:40:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WLgXic4WL_0N for ; Sun, 2 Nov 2014 23:40:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 60633A119D for ; Sun, 2 Nov 2014 23:40:28 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hi2so5081627wib.13 for ; Sun, 02 Nov 2014 15:40:26 -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=Crb+0jCBOpTxgXso5Gsk3zIIWkOa7VUuKE1yNruYAQA=; b=XZU2Tm7epjf91TN0nXfDGf6x+vlaEt81gWZHMdRuN9dKZUIKznyYzYd2gxtk6qBQ80 yt62PAj2rBA7ItCT0pwafRievR5TxfY6BBLuS5s+4l6+JX2Vk++zOqt66bP1+N2Y9p9G 9x1ejdW7o1cEaNX0qRj3TJEV3uXnz97AfGlFLNxkzQHytB/nsFO32l847rhNvjdIxue3 GRjyhWDf4pn9+8tkueNwXNRc+FYVbu6hCvApJh3VJDgdnkI7QAv05/04kTPJ7nnE0d2Q lWYsNTyuFZb56HYD5WQiYKfKnLRfjfKhfbiXR6Eik1ToZ8vTpw3yFqo+c9i6gKJJeD6V RRJw== X-Received: by 10.194.81.6 with SMTP id v6mr43284966wjx.39.1414971626675; Sun, 02 Nov 2014 15:40:26 -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.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Nov 2014 15:40:26 -0800 (PST) From: Maxime Hadjinlian To: buildroot@buildroot.org Date: Mon, 3 Nov 2014 00:39:54 +0100 Message-Id: <1414971595-9972-5-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 5/6] manual: Rework makedevs syntax 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" State that it should be a space separated list and fix the example. Also reduce the number of dash used to 4. Signed-off-by: Maxime Hadjinlian --- docs/manual/makedev-syntax.txt | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/manual/makedev-syntax.txt b/docs/manual/makedev-syntax.txt index 2fd7b59..22d4c10 100644 --- a/docs/manual/makedev-syntax.txt +++ b/docs/manual/makedev-syntax.txt @@ -11,13 +11,14 @@ create and how to create them, in order to avoid calls to mknod. This syntax is derived from the makedev utility, and more complete documentation can be found in the +package/makedevs/README+ file. -It takes the form of a line for each file, with the following layout: +It takes the form of a space separated list of fields, one file per +line; the fields are: |=========================================================== |name |type |mode |uid |gid |major |minor |start |inc |count |=========================================================== -There are a few non-trivial blocks here: +There are a few non-trivial blocks: - +name+ is the path to the file you want to create/modify - +type+ is the type of the file, being one of: @@ -35,22 +36,23 @@ There are a few non-trivial blocks here: Let's say you want to change the permissions of a given file; using this syntax, you will need to put: -------------------------------------------------------------------- -/usr/bin/foobar f 644 0 0 - - - - - -------------------------------------------------------------------- + +---- +/usr/bin/foobar f 644 0 0 - - - - - +---- On the other hand, if you want to create the device file +/dev/hda+ and the corresponding 15 files for the partitions, you will need for +/dev/hda+: -------------------------------------------------------------------- -/dev/hda b 640 0 0 3 0 0 0 - -------------------------------------------------------------------- +---- +/dev/hda b 640 0 0 3 0 0 0 - +---- and then for device files corresponding to the partitions of +/dev/hda+, +/dev/hdaX+, +X+ ranging from 1 to 15: -------------------------------------------------------------------- -/dev/hda b 640 0 0 3 1 1 1 15 -------------------------------------------------------------------- +---- +/dev/hda b 640 0 0 3 1 1 1 15 +----