No longer use parameter "-r" (for regex intervals) that busybox awk does not support

Error was:
awk: invalid option -- r

Note: regex intervals are supported by default so we can just omit "-r" here
cleanup-cruft
Sebastian Pipping 13 years ago
parent 6487f2ee5f
commit 38205c74b4

@ -5,6 +5,10 @@
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $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: 10 Mar 2012; Robin H. Johnson <robbat2@gentoo.org> genkernel:
Bump version for release. Bump version for release.

@ -149,7 +149,7 @@ devicelist(){
DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*" DEVICES="$DEVICES /dev/mmcblk* /dev/mmcblk*/*"
# fallback scanning, this might scan something twice, but it's better than # fallback scanning, this might scan something twice, but it's better than
# failing to boot. # 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} echo ${DEVICES}
} }

Loading…
Cancel
Save