add systemd service for changing ownership of huawei-wmi files
This commit is contained in:
10
bin/chown-huawei-wmi.sh
Executable file
10
bin/chown-huawei-wmi.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
readonly WMI=/sys/devices/platform/huawei-wmi
|
||||
|
||||
echo "started"
|
||||
|
||||
echo "$(/bin/whoami)"
|
||||
|
||||
chmod g+w "$WMI/leds/platform::micmute/brightness"
|
||||
chown root:huawei-wmi "$WMI/leds/platform::micmute/brightness"
|
||||
Reference in New Issue
Block a user