From c875f74890313e092897584f55e2f0074edb3ad0 Mon Sep 17 00:00:00 2001 From: Filip Zyzniewski Date: Sat, 12 Feb 2011 02:06:19 +0000 Subject: [PATCH] initscripts: handle busybox version of makedevs properly. Makedevs from busybox has a different command line syntax. Signed-off-by: Filip Zyzniewski Signed-off-by: Tom Rini --- recipes/initscripts/initscripts-1.0/devices | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/initscripts/initscripts-1.0/devices b/recipes/initscripts/initscripts-1.0/devices index 67a2ec8092..405962827a 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 -- 2.39.5