Enable user access to pinephone hardware kernel interface through openrc script, remove setuid 0 requirement
This commit is contained in:
parent
00cf2ba3ec
commit
ca88d3029e
5 changed files with 17 additions and 16 deletions
6
configs/openrc/sxmo-pinephone
Normal file
6
configs/openrc/sxmo-pinephone
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
description="Enable user access to pinephone hardware kernel interface"
|
||||
|
||||
command="chmod"
|
||||
command_args="a+rw /sys/module/8723cs/parameters/rtw_scan_interval_thr /sys/devices/platform/backlight/backlight/backlight/brightness /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /sys/bus/usb/drivers/usb/unbind /sys/bus/usb/drivers/usb/bind /sys/class/leds/red:indicator/brightness /sys/class/leds/blue:indicator/brightness /sys/class/leds/green:indicator/brightness /sys/class/leds/white:flash/brightness /dev/rtc0"
|
Loading…
Add table
Add a link
Reference in a new issue