From 417b9f047d303df621f28c983ee50f8a9448292d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Tue, 7 Apr 2015 14:04:00 +0200 Subject: [PATCH] - remove bashism from zfcpconf.sh --- s390utils.spec | 5 ++++- zfcpconf.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/s390utils.spec b/s390utils.spec index 0352c1a..1c985ca 100644 --- a/s390utils.spec +++ b/s390utils.spec @@ -5,7 +5,7 @@ Name: s390utils Summary: Utilities and daemons for IBM System/z Group: System Environment/Base Version: 1.23.0 -Release: 14%{?dist} +Release: 15%{?dist} Epoch: 2 License: GPLv2 and GPLv2+ and CPL ExclusiveArch: s390 s390x @@ -753,6 +753,9 @@ User-space development files for the s390/s390x architecture. %changelog +* Tue Apr 07 2015 Dan Horák - 2:1.23.0-15 +- remove bashism from zfcpconf.sh + * Wed Jan 28 2015 Dan Horák - 2:1.23.0-14 - refresh from RHEL-7 - update patches diff --git a/zfcpconf.sh b/zfcpconf.sh index b2da28f..45d10a1 100644 --- a/zfcpconf.sh +++ b/zfcpconf.sh @@ -46,7 +46,7 @@ if [ -f "$CONFIG" ]; then WWPN=$2 FCPLUN=$3 fi - [ `cat /sys/bus/ccw/drivers/zfcp/${DEVICE}/online` == "0" ] \ + [ `cat /sys/bus/ccw/drivers/zfcp/${DEVICE}/online` = "0" ] \ && echo 1 > /sys/bus/ccw/drivers/zfcp/${DEVICE}/online [ ! -d /sys/bus/ccw/drivers/zfcp/${DEVICE}/${WWPN}/${FCPLUN} ] \ && echo $FCPLUN > /sys/bus/ccw/drivers/zfcp/${DEVICE}/${WWPN}/unit_add