Harald Hoyer 5f0dd7
From 7a04712ad0efa9afa3759656ea1b26db40a8a29e Mon Sep 17 00:00:00 2001
Harald Hoyer 5f0dd7
From: Daniel Molkentin <dmolkentin@suse.com>
Harald Hoyer 5f0dd7
Date: Mon, 21 Jan 2019 14:40:06 +0100
Harald Hoyer 5f0dd7
Subject: [PATCH] 95zfcp_rules/parse-zfcp.sh: remove rule existence check
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
Reference: bsc#1008352
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
Original-Patch-By: Michal Suchanek <msuchanek@suse.com>
Harald Hoyer 5f0dd7
---
Harald Hoyer 5f0dd7
 modules.d/95zfcp_rules/parse-zfcp.sh | 2 --
Harald Hoyer 5f0dd7
 1 file changed, 2 deletions(-)
Harald Hoyer 5f0dd7
Harald Hoyer 5f0dd7
diff --git a/modules.d/95zfcp_rules/parse-zfcp.sh b/modules.d/95zfcp_rules/parse-zfcp.sh
Harald Hoyer 5f0dd7
index 7defb04f..2b62012b 100755
Harald Hoyer 5f0dd7
--- a/modules.d/95zfcp_rules/parse-zfcp.sh
Harald Hoyer 5f0dd7
+++ b/modules.d/95zfcp_rules/parse-zfcp.sh
Harald Hoyer 5f0dd7
@@ -22,8 +22,6 @@ create_udev_rule() {
Harald Hoyer 5f0dd7
         return 0;
Harald Hoyer 5f0dd7
     fi
Harald Hoyer 5f0dd7
 
Harald Hoyer 5f0dd7
-    [ -e ${_rule} ] && return 0
Harald Hoyer 5f0dd7
-
Harald Hoyer 5f0dd7
     if [ ! -f "$_rule" ] ; then
Harald Hoyer 5f0dd7
         cat > $_rule <
Harald Hoyer 5f0dd7
 ACTION=="add", SUBSYSTEM=="ccw", KERNEL=="$ccw", IMPORT{program}="collect $ccw %k ${ccw} zfcp"
Harald Hoyer 5f0dd7