[oe] [PATCH] initscripts: handle busybox version of makedevs properly.
Filip Zyzniewski
filip.zyzniewski at gmail.com
Fri Feb 11 18:06:19 UTC 2011
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
--
1.7.1
More information about the Openembedded-devel
mailing list