daandemeyer / rpms / systemd

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