1 Star 0 Fork 91

刘智淋 / systemd

forked from src-openEuler / systemd 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
udev-virsh-shutdown-vm.patch 830 Bytes
Copy Edit Raw Blame History
胡宇彪 authored 2023-07-31 10:00 . sync the patch from v249
From 3d5e0620b4a3298620c8d985cec42772c7f77c6d Mon Sep 17 00:00:00 2001
From: openEuler Buildteam <buildteam@openeuler.org>
Date: Thu, 31 Jan 2019 02:24:16 -0500
Subject: [PATCH] systemd:virsh shutdown vm
---
rules.d/70-power-switch.rules | 1 +
1 file changed, 1 insertion(+)
diff --git a/rules.d/70-power-switch.rules b/rules.d/70-power-switch.rules
index 3fb954a..bc79410 100644
--- a/rules.d/70-power-switch.rules
+++ b/rules.d/70-power-switch.rules
@@ -11,5 +11,6 @@ ACTION=="remove", GOTO="power_switch_end"
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_SWITCH}=="1", TAG+="power-switch"
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT_KEY}=="1", TAG+="power-switch"
+SUBSYSTEM=="input", KERNEL=="event*", SUBSYSTEMS=="platform", ATTRS{keys}=="116", TAG+="power-switch"
LABEL="power_switch_end"
--
2.33.0
1
https://gitee.com/lliuzhi/systemd.git
git@gitee.com:lliuzhi/systemd.git
lliuzhi
systemd
systemd
master

Search