mirror of
https://codeberg.org/revsuine/disable-c6-runit.git
synced 2025-01-23 13:57:15 +00:00
18 lines
353 B
Text
18 lines
353 B
Text
|
#!/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
|
||
|
|