mirror of
https://codeberg.org/revsuine/disable-c6-runit.git
synced 2025-04-27 04:48:55 +00:00
add run
This commit is contained in:
parent
e21788cb40
commit
6de6e2dbc1
1 changed files with 17 additions and 0 deletions
17
disable-c6/run
Normal file
17
disable-c6/run
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# msr must be running for this to work
|
||||||
|
# check if running
|
||||||
|
if test ! lsmod | grep -wq "msr"; then
|
||||||
|
# if it's not running then start it
|
||||||
|
modprobe msr
|
||||||
|
fi
|
||||||
|
|
||||||
|
zenstates --c6-disable
|
||||||
|
|
||||||
|
# pause only if zenstates executes successfully
|
||||||
|
# if it was unsuccessful then runit will attempt to execute this again
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
exec pause
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue