Skip to content

Commit

Permalink
legion_linux & service: Add OpenRC services file and warning to gui
Browse files Browse the repository at this point in the history
* PR are welcome for improvements, I not familiar with OpenRC

Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed Apr 5, 2024
1 parent ee77d2b commit 151da20
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ Mkfile.old
dkms.conf

build/
dist/
dist/
extra/service/legiond/legiond
extra/service/legiond/legiond-ctl
9 changes: 9 additions & 0 deletions extra/service/legiond-cpuset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
case $1/$2 in
post/*)
while true; do
/usr/bin/legiond-ctl cpuset
sleep 30
done
;;
esac
6 changes: 6 additions & 0 deletions extra/service/legiond-onresume.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
case $1/$2 in
post/*)
/usr/bin/legiond-cli fanset 3
;;
esac
7 changes: 7 additions & 0 deletions python/legion_linux/legion_linux/legion_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,13 @@ def init_ui(self):
'These are Experimental Features.\n To apply and save the Settings Press "Save" or "Save and Quit"')
self.options_layout.addWidget(self.note_label, 4)

self.note_openrc_label = QLabel(
"OpenRC service are available but need to be enable manually!\n"
"They are install automatically on gentoo base distro!\n"
"To get the files go to extra/service in the repo.\n"
)
self.options_layout.addWidget(self.note_openrc_label, 4)

self.note_label2 = QLabel("")

self.main_layout = QVBoxLayout()
Expand Down

0 comments on commit 151da20

Please sign in to comment.