[PATCH 2.0.12] brown paper bag awk fixes
Matt Domsch
Matt_Domsch at dell.com
Wed Jun 28 10:41:30 CDT 2006
It would help if we put ticks around the awk matching patterns, and
continued one line with a \.
There will be a 2.0.12.1 out today, followed very quickly by 2.0.13 I
expect...
Thanks,
Matt
--
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com
--- dkms.orig 2006-06-27 08:45:25.000000000 -0500
+++ dkms 2006-06-28 10:37:48.000000000 -0500
@@ -521,14 +521,14 @@
# there are 2 possible srcversion checksums
# one in the 'srcversion' tag alone (preferred)
# and one following the version field in the 'version' tag (deprecated)
- local kernels_ver_checksum=`modinfo $kernels_module | awk /^srcversion:/ {print $2}`
- local dkms_ver_checksum=`modinfo $dkms_module | awk /^srcversion:/ {print $2}`
+ local kernels_ver_checksum=`modinfo $kernels_module | awk '/^srcversion:/ {print $2}'`
+ local dkms_ver_checksum=`modinfo $dkms_module | awk '/^srcversion:/ {print $2}'`
if [ -z "$kernels_ver_checksum" -a -z "$dkms_ver_checksum" ]; then
kernels_ver_checksum=`echo $kernels_ver_string | awk {'print $3'}`
dkms_ver_checksum=`echo $dkms_ver_string | awk {'print $3'}`
fi
- if [ -n "$kernels_ver_checksum" -a -n "$dkms_ver_checksum" -a
+ if [ -n "$kernels_ver_checksum" -a -n "$dkms_ver_checksum" -a \
"$kernels_ver_checksum" == "$dkms_ver_checksum" -a -z "$force" ]; then
echo $"" >&2
echo $"Good news! Module version $dkms_ver_value for ${dest_module_name[$count]}$module_suffix" >&2
More information about the DKMS-devel
mailing list