aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/initscripts
diff options
context:
space:
mode:
authorFilip Zyzniewski <filip.zyzniewski@gmail.com>2011-02-12 02:06:19 +0000
committerTom Rini <tom_rini@mentor.com>2011-02-11 14:57:27 -0700
commitc875f74890313e092897584f55e2f0074edb3ad0 (patch)
tree8f2c372b7f574872cb55802d18f45ff32e7aa45e /recipes/initscripts
parentf4476372697c27b9ccaa2b9aae4687c78600e6c0 (diff)
downloadopenembedded-c875f74890313e092897584f55e2f0074edb3ad0.tar.gz
initscripts: handle busybox version of makedevs properly.
Makedevs from busybox has a different command line syntax. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/initscripts')
-rwxr-xr-xrecipes/initscripts/initscripts-1.0/devices8
1 files changed, 7 insertions, 1 deletions
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