[oe-commits] Filip Zyzniewski : initscripts: handle busybox version of makedevs properly .

git version control git at git.openembedded.org
Fri Feb 11 21:58:39 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: c875f74890313e092897584f55e2f0074edb3ad0
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c875f74890313e092897584f55e2f0074edb3ad0

Author: Filip Zyzniewski <filip.zyzniewski at gmail.com>
Date:   Sat Feb 12 02:06:19 2011 +0000

initscripts: handle busybox version of makedevs properly.

Makedevs from busybox has a different command line syntax.

Signed-off-by: Filip Zyzniewski <filip.zyzniewski at gmail.com>
Signed-off-by: Tom Rini <tom_rini at mentor.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





More information about the Openembedded-commits mailing list