From: Sebastian Pipping Date: Fri, 16 Mar 2012 19:08:25 +0000 (+0100) Subject: No longer use parameter "-r" (for regex intervals) that busybox awk does not support X-Git-Tag: v3.4.26~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38205c74b4bcf1cfd37037f72b89b3d0cdd750c0;p=genkernel.git 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 --- diff --git a/ChangeLog b/ChangeLog index 9e92448..55f5569 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 16 Mar 2012; Sebastian Pipping defaults/initrd.scripts: + No longer use parameter "-r" (for regex intervals) that busybox awk does not + support + 10 Mar 2012; Robin H. Johnson genkernel: Bump version for release. diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 16e1d0d..0e1e5f9 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -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} }