aed857
From 4b451af437d5d51b98d11d32130aac6938307798 Mon Sep 17 00:00:00 2001
aed857
From: Michal Sekletar <msekleta@redhat.com>
aed857
Date: Fri, 17 Aug 2018 13:10:22 +0000
aed857
Subject: [PATCH] Revert "rules: add udev rule that automatically offline HW
aed857
 attached to ACPI container"
aed857
aed857
This reverts commit 6bc676b1a1bfa7145106f737a6747526ce662b93.
aed857
aed857
Related: #1597958
aed857
---
aed857
 Makefile.am                     |  1 -
aed857
 rules/40-redhat-hotunplug.rules | 14 --------------
aed857
 2 files changed, 15 deletions(-)
aed857
 delete mode 100644 rules/40-redhat-hotunplug.rules
aed857
aed857
diff --git a/Makefile.am b/Makefile.am
Pablo Greco 48fc63
index 3995dcce89..40ebbe98ee 100644
aed857
--- a/Makefile.am
aed857
+++ b/Makefile.am
aed857
@@ -3524,7 +3524,6 @@ dist_udevrules_DATA += \
aed857
 	rules/40-redhat.rules \
aed857
 	rules/40-redhat-disable-lenovo-ir-camera.rules \
aed857
 	rules/40-redhat-disable-dell-ir-camera.rules \
aed857
-	rules/40-redhat-hotunplug.rules \
aed857
 	rules/73-idrac.rules \
aed857
         rules/80-net-name-slot.rules
aed857
 
aed857
diff --git a/rules/40-redhat-hotunplug.rules b/rules/40-redhat-hotunplug.rules
aed857
deleted file mode 100644
Pablo Greco 48fc63
index 3befdaffc8..0000000000
aed857
--- a/rules/40-redhat-hotunplug.rules
aed857
+++ /dev/null
aed857
@@ -1,14 +0,0 @@
aed857
-# ACPI0004 container offline for Huawei Kunlun
aed857
-# do not edit this file, it will be overwritten on update
aed857
-
aed857
-SUBSYSTEM=="container", ACTION=="change", DEVPATH=="*/ACPI0004:??", \
aed857
-RUN+="/bin/sh -c ' \
aed857
-if [ $(cat /sys/$env{DEVPATH}/online) -eq 1 ]; then \
aed857
-        find -L /sys/$env{DEVPATH}/firmware_node/*/physical_node* -maxdepth 1 -name online | \
aed857
-        while read line; do \
aed857
-                if [ $(cat $line) -eq 1 ]; then \
aed857
-                        /bin/echo 0 > $line; \
aed857
-                fi \
aed857
-        done; \
aed857
-        /bin/echo 0 > /sys/$env{DEVPATH}/online; \
aed857
-fi'"
aed857
\ No newline at end of file