From: Tom Rini <tom_rini@mentor.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] initscripts: handle busybox version of makedevs properly.
Date: Fri, 11 Feb 2011 11:20:29 -0700 [thread overview]
Message-ID: <4D557DED.5070606@mentor.com> (raw)
In-Reply-To: <1297447579-5311-1-git-send-email-filip.zyzniewski@gmail.com>
On 02/11/2011 11:06 AM, Filip Zyzniewski wrote:
> Makedevs from busybox has a different command line syntax.
>
> Signed-off-by: Filip Zyzniewski<filip.zyzniewski@gmail.com>
> ---
> recipes/initscripts/initscripts-1.0/devices | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/initscripts/initscripts-1.0/devices b/recipes/initscripts/initscripts-1.0/devices
> index 67a2ec8..4059628 100755
> --- a/recipes/initscripts/initscripts-1.0/devices
> +++ b/recipes/initscripts/initscripts-1.0/devices
> @@ -56,7 +56,13 @@ else
> done
> ln -sf /proc/self/fd /dev/fd
> ln -sf /proc/kcore /dev/core
> - /sbin/makedevs -r / -D /etc/device_table
> +
> + if test `readlink -f "/sbin/makedevs"` = "/bin/busybox"; then
> + MAKEDEV_ARGS="-d /etc/device_table /"
> + else
> + MAKEDEV_ARGS="-r / -D /etc/device_table"
> + fi
> + /sbin/makedevs $MAKEDEV_ARGS
> if test $? -ne 0; then
> if test "$VERBOSE" != "no"; then echo "failed"; fi
> else
Is there a syntax that works for both?
--
Tom Rini
Mentor Graphics Corporation
next prev parent reply other threads:[~2011-02-11 18:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-09 21:54 Problem with makedevs Filip Zyzniewski
2011-02-10 9:02 ` Andrea Adami
2011-02-11 18:06 ` [PATCH] initscripts: handle busybox version of makedevs properly Filip Zyzniewski
2011-02-11 18:20 ` Tom Rini [this message]
2011-02-11 21:10 ` Filip Zyzniewski
2011-02-11 21:59 ` Mike Westerhof
2011-02-11 22:38 ` Filip Zyzniewski
2011-02-11 21:56 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D557DED.5070606@mentor.com \
--to=tom_rini@mentor.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.