File s390tools-180-rpmlint.patch of Package s390-tools

Index: etc/init.d/dumpconf
===================================================================
--- etc/init.d/dumpconf.orig
+++ etc/init.d/dumpconf
@@ -14,6 +14,8 @@
 
 DUMP_CONFIG_FILE=/etc/sysconfig/dumpconf
 
+AWK=/bin/awk
+
 RETVAL=0
 
 check_environment()
@@ -28,7 +30,7 @@ check_environment()
 		exit 1 
 	fi
 
-	SYSFSDIR=$(cat /proc/mounts|awk '$3=="sysfs"{print $2; exit}')
+	SYSFSDIR=$(cat /proc/mounts|$AWK '$3=="sysfs"{print $2; exit}')
 	if [ "$SYSFSDIR" = "" ]; then
 		echo "sysfs not mounted" >&2
 		exit 1
@@ -90,7 +92,7 @@ EOF
 # $1: dump device bus id (e.g. 0.0.4711)
 verify_ccw_dump_device()
 {
-	line=$(lsdasd $1)
+	line=$(/sbin/lsdasd $1)
 	if [ "$line" == "" ]; then
 		echo "WARNING: device $1 not found!"
 		return 1
@@ -105,7 +107,7 @@ verify_ccw_dump_device()
 			found=true
 		fi
 	done
-	zgetdump -d /dev/$i > /dev/null 2>&1
+	/sbin/zgetdump -d /dev/$i > /dev/null 2>&1
 	if [ $? == 0 ]; then
 		return 0
 	else
openSUSE Build Service is sponsored by