[oe] [PATCH] initscripts: handle busybox version of makedevs properly.

Tom Rini tom_rini at mentor.com
Fri Feb 11 21:56:30 UTC 2011


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 at 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

Thanks for digging into this, applied.

-- 
Tom Rini
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list