aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andy Shevchenko <andriy.shevchenko@linux.intel.com>2016-07-01 21:56:19 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-07-02 13:15:50 +0200
commitb4fc5a180c81689a982d5c595844331684c14f51 (patch)
tree798f0b05bc410dfb02bff2c2a852351865c652c8
parent6613e086f4f8877a46161b1658b89d894ad5e8c5 (diff)
downloadbuildroot-b4fc5a180c.tar.gz
buildroot-b4fc5a180c.tar.bz2
package/busybox: support spaces in module aliases in mdev
The new change which enabled automatic module loading on boot does not handle the cases when module alias includes spaces. It prevents modules to be loaded since script fails: % find /sys/ -name modalias | xargs sort -u sort: /sys/devices/platform/Fixed: No such file or directory First alias in question is "platform:Fixed MDIO bus". Amend the script to support above like cases. Fixes: 07f46c2b6dae ("package/busybox: support automatic module loading with mdev") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/busybox/S10mdev2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/busybox/S10mdev b/package/busybox/S10mdev
index 4cb31de42d..63ca955b1c 100644
--- a/package/busybox/S10mdev
+++ b/package/busybox/S10mdev
@@ -9,7 +9,7 @@ case "$1" in
echo /sbin/mdev >/proc/sys/kernel/hotplug
/sbin/mdev -s
# coldplug modules
- find /sys/ -name modalias | xargs sort -u | xargs modprobe -abq
+ find /sys/ -name modalias -print0 | xargs -0 sort -u -z | xargs -0 modprobe -abq
;;
stop)
;;