No longer use parameter "-r" (for regex intervals) that busybox awk does not support
authorSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 19:08:25 +0000 (20:08 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 19:08:35 +0000 (20:08 +0100)
Error was:
awk: invalid option -- r

Note: regex intervals are supported by default so we can just omit "-r" here

ChangeLog
defaults/initrd.scripts

index 9e924482bbfdb960e76b5a50d5fde774fa30a644..55f55691255a5af25f63390b8a662e7b4b4bd1f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts:
+  No longer use parameter "-r" (for regex intervals) that busybox awk does not
+  support
+
   10 Mar 2012; Robin H. Johnson <robbat2@gentoo.org> genkernel:
   Bump version for release.
 
index 16e1d0dbf2cc709a6c3d9a17956c1ca4f1b85402..0e1e5f998c7f092e61d5710e71232fd78fdd78b5 100755 (executable)
@@ -149,7 +149,7 @@ devicelist(){
        DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*"
        # fallback scanning, this might scan something twice, but it's better than
        # failing to boot.
-       [ -e /proc/partitions ] && DEVICES="${DEVICES} $(awk -r '/([0-9]+[[:space:]]+)/{print "/dev/" $4}' /proc/partitions)"
+       [ -e /proc/partitions ] && DEVICES="${DEVICES} $(awk '/([0-9]+[[:space:]]+)/{print "/dev/" $4}' /proc/partitions)"
        echo ${DEVICES}
 }